power: supply: ab8500: Remove unneeded semicolon
Fixes coccicheck warning: drivers/power/supply/ab8500_fg.c:2224:5-6: Unneeded semicolon drivers/power/supply/ab8500_fg.c:2227:4-5: Unneeded semicolon drivers/power/supply/ab8500_fg.c:2334:3-4: Unneeded semicolon drivers/power/supply/ab8500_fg.c:2342:3-4: Unneeded semicolon drivers/power/supply/ab8500_fg.c:2350:3-4: Unneeded semicolon drivers/power/supply/ab8500_fg.c:2358:3-4: Unneeded semicolon drivers/power/supply/ab8500_fg.c:2366:3-4: Unneeded semicolon Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Ma Feng <mafeng.ma@huawei.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
e2ec6aef37
commit
c6ef5234ef
|
@ -2221,10 +2221,10 @@ static int ab8500_fg_get_ext_psy_data(struct device *dev, void *data)
|
||||||
ab8500_fg_update_cap_scalers(di);
|
ab8500_fg_update_cap_scalers(di);
|
||||||
queue_work(di->fg_wq, &di->fg_work);
|
queue_work(di->fg_wq, &di->fg_work);
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
break;
|
break;
|
||||||
case POWER_SUPPLY_PROP_TECHNOLOGY:
|
case POWER_SUPPLY_PROP_TECHNOLOGY:
|
||||||
switch (ext->desc->type) {
|
switch (ext->desc->type) {
|
||||||
|
@ -2331,7 +2331,7 @@ static int ab8500_fg_init_hw_registers(struct ab8500_fg *di)
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_MAX_TIME_REG\n", __func__);
|
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_MAX_TIME_REG\n", __func__);
|
||||||
goto out;
|
goto out;
|
||||||
};
|
}
|
||||||
|
|
||||||
ret = abx500_set_register_interruptible(di->dev, AB8500_RTC,
|
ret = abx500_set_register_interruptible(di->dev, AB8500_RTC,
|
||||||
AB8505_RTC_PCUT_FLAG_TIME_REG, di->bm->fg_params->pcut_flag_time);
|
AB8505_RTC_PCUT_FLAG_TIME_REG, di->bm->fg_params->pcut_flag_time);
|
||||||
|
@ -2339,7 +2339,7 @@ static int ab8500_fg_init_hw_registers(struct ab8500_fg *di)
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_FLAG_TIME_REG\n", __func__);
|
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_FLAG_TIME_REG\n", __func__);
|
||||||
goto out;
|
goto out;
|
||||||
};
|
}
|
||||||
|
|
||||||
ret = abx500_set_register_interruptible(di->dev, AB8500_RTC,
|
ret = abx500_set_register_interruptible(di->dev, AB8500_RTC,
|
||||||
AB8505_RTC_PCUT_RESTART_REG, di->bm->fg_params->pcut_max_restart);
|
AB8505_RTC_PCUT_RESTART_REG, di->bm->fg_params->pcut_max_restart);
|
||||||
|
@ -2347,7 +2347,7 @@ static int ab8500_fg_init_hw_registers(struct ab8500_fg *di)
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_RESTART_REG\n", __func__);
|
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_RESTART_REG\n", __func__);
|
||||||
goto out;
|
goto out;
|
||||||
};
|
}
|
||||||
|
|
||||||
ret = abx500_set_register_interruptible(di->dev, AB8500_RTC,
|
ret = abx500_set_register_interruptible(di->dev, AB8500_RTC,
|
||||||
AB8505_RTC_PCUT_DEBOUNCE_REG, di->bm->fg_params->pcut_debounce_time);
|
AB8505_RTC_PCUT_DEBOUNCE_REG, di->bm->fg_params->pcut_debounce_time);
|
||||||
|
@ -2355,7 +2355,7 @@ static int ab8500_fg_init_hw_registers(struct ab8500_fg *di)
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_DEBOUNCE_REG\n", __func__);
|
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_DEBOUNCE_REG\n", __func__);
|
||||||
goto out;
|
goto out;
|
||||||
};
|
}
|
||||||
|
|
||||||
ret = abx500_set_register_interruptible(di->dev, AB8500_RTC,
|
ret = abx500_set_register_interruptible(di->dev, AB8500_RTC,
|
||||||
AB8505_RTC_PCUT_CTL_STATUS_REG, di->bm->fg_params->pcut_enable);
|
AB8505_RTC_PCUT_CTL_STATUS_REG, di->bm->fg_params->pcut_enable);
|
||||||
|
@ -2363,7 +2363,7 @@ static int ab8500_fg_init_hw_registers(struct ab8500_fg *di)
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_CTL_STATUS_REG\n", __func__);
|
dev_err(di->dev, "%s write failed AB8505_RTC_PCUT_CTL_STATUS_REG\n", __func__);
|
||||||
goto out;
|
goto out;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue