summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorkbuild test robot <fengguang.wu@intel.com>2018-09-17 10:23:20 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2018-09-18 12:35:51 +0200
commitad1570d99f280f73c72510d7f79db9adf599474b (patch)
tree485b58c9c9b657c478b3bf38e0d0044594197bd3 /drivers/power
parentcb90a2c6f77fe9b43d1e3f759bb2f13fe7fa1811 (diff)
downloadlinux-ad1570d99f280f73c72510d7f79db9adf599474b.tar.bz2
power: supply: bq25890_charger: fix semicolon.cocci warnings
drivers/power/supply/bq25890_charger.c:614:2-3: Unneeded semicolon drivers/power/supply/bq25890_charger.c:621:2-3: Unneeded semicolon drivers/power/supply/bq25890_charger.c:630:3-4: Unneeded semicolon drivers/power/supply/bq25890_charger.c:638:2-3: Unneeded semicolon drivers/power/supply/bq25890_charger.c:644:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 9d9ae3414d1b ("power: supply: bq25890_charger: Add debugging output of failed initialization") CC: Angus Ainslie (Purism) <angus@akkea.ca> Signed-off-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/bq25890_charger.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c
index 1aa7872ddeb0..70b90db5ae38 100644
--- a/drivers/power/supply/bq25890_charger.c
+++ b/drivers/power/supply/bq25890_charger.c
@@ -628,14 +628,14 @@ static int bq25890_hw_init(struct bq25890_device *bq)
if (ret < 0) {
dev_dbg(bq->dev, "Reset failed %d\n", ret);
return ret;
- };
+ }
/* disable watchdog */
ret = bq25890_field_write(bq, F_WD, 0);
if (ret < 0) {
dev_dbg(bq->dev, "Disabling watchdog failed %d\n", ret);
return ret;
- };
+ }
/* initialize currents/voltages and other parameters */
for (i = 0; i < ARRAY_SIZE(init_data); i++) {
@@ -644,7 +644,7 @@ static int bq25890_hw_init(struct bq25890_device *bq)
if (ret < 0) {
dev_dbg(bq->dev, "Writing init data failed %d\n", ret);
return ret;
- };
+ }
}
/* Configure ADC for continuous conversions. This does not enable it. */
@@ -652,13 +652,13 @@ static int bq25890_hw_init(struct bq25890_device *bq)
if (ret < 0) {
dev_dbg(bq->dev, "Config ADC failed %d\n", ret);
return ret;
- };
+ }
ret = bq25890_get_chip_state(bq, &state);
if (ret < 0) {
dev_dbg(bq->dev, "Get state failed %d\n", ret);
return ret;
- };
+ }
mutex_lock(&bq->lock);
bq->state = state;