提交 1a457329 编写于 作者: C ChenTao 提交者: Sebastian Reichel

power: supply: cw2015: Make some symbols static

Fix the following warning:

drivers/power/supply/cw2015_battery.c:96:5: warning:
'cw_update_profile' was not declared. Should it be static?
drivers/power/supply/cw2015_battery.c:712:1: warning:
'cw_bat_pm_ops' was not declared. Should it be static?
Reported-by: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NChenTao <chentao107@huawei.com>
Acked-by: NTobias Schramm <t.schramm@manjaro.org>
Tested-by: NTobias Schramm <t.schramm@manjaro.org>
Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
上级 cf5701bf
......@@ -93,7 +93,7 @@ static int cw_read_word(struct cw_battery *cw_bat, u8 reg, u16 *val)
return 0;
}
int cw_update_profile(struct cw_battery *cw_bat)
static int cw_update_profile(struct cw_battery *cw_bat)
{
int ret;
unsigned int reg_val;
......@@ -709,7 +709,7 @@ static int __maybe_unused cw_bat_resume(struct device *dev)
return 0;
}
SIMPLE_DEV_PM_OPS(cw_bat_pm_ops, cw_bat_suspend, cw_bat_resume);
static SIMPLE_DEV_PM_OPS(cw_bat_pm_ops, cw_bat_suspend, cw_bat_resume);
static int cw_bat_remove(struct i2c_client *client)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册