Commit f62b267a authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Sebastian Reichel

power: supply: ab8500: Clean some error messages

There is an useless extra comma at the end of some error messages, remove
them.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/e7ac0fa83c6100cbe4e0efa90cf99291c2423b10.1719037737.git.christophe.jaillet@wanadoo.frSigned-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent dc6ce568
...@@ -491,7 +491,7 @@ static int ab8500_charger_get_ac_voltage(struct ab8500_charger *di) ...@@ -491,7 +491,7 @@ static int ab8500_charger_get_ac_voltage(struct ab8500_charger *di)
ret = iio_read_channel_processed_scale(di->adc_main_charger_v, ret = iio_read_channel_processed_scale(di->adc_main_charger_v,
&vch, 1000); &vch, 1000);
if (ret < 0) { if (ret < 0) {
dev_err(di->dev, "%s ADC conv failed,\n", __func__); dev_err(di->dev, "%s ADC conv failed\n", __func__);
return ret; return ret;
} }
} else { } else {
...@@ -546,7 +546,7 @@ static int ab8500_charger_get_vbus_voltage(struct ab8500_charger *di) ...@@ -546,7 +546,7 @@ static int ab8500_charger_get_vbus_voltage(struct ab8500_charger *di)
ret = iio_read_channel_processed_scale(di->adc_vbus_v, ret = iio_read_channel_processed_scale(di->adc_vbus_v,
&vch, 1000); &vch, 1000);
if (ret < 0) { if (ret < 0) {
dev_err(di->dev, "%s ADC conv failed,\n", __func__); dev_err(di->dev, "%s ADC conv failed\n", __func__);
return ret; return ret;
} }
} else { } else {
...@@ -572,7 +572,7 @@ static int ab8500_charger_get_usb_current(struct ab8500_charger *di) ...@@ -572,7 +572,7 @@ static int ab8500_charger_get_usb_current(struct ab8500_charger *di)
ret = iio_read_channel_processed_scale(di->adc_usb_charger_c, ret = iio_read_channel_processed_scale(di->adc_usb_charger_c,
&ich, 1000); &ich, 1000);
if (ret < 0) { if (ret < 0) {
dev_err(di->dev, "%s ADC conv failed,\n", __func__); dev_err(di->dev, "%s ADC conv failed\n", __func__);
return ret; return ret;
} }
} else { } else {
...@@ -598,7 +598,7 @@ static int ab8500_charger_get_ac_current(struct ab8500_charger *di) ...@@ -598,7 +598,7 @@ static int ab8500_charger_get_ac_current(struct ab8500_charger *di)
ret = iio_read_channel_processed_scale(di->adc_main_charger_c, ret = iio_read_channel_processed_scale(di->adc_main_charger_c,
&ich, 1000); &ich, 1000);
if (ret < 0) { if (ret < 0) {
dev_err(di->dev, "%s ADC conv failed,\n", __func__); dev_err(di->dev, "%s ADC conv failed\n", __func__);
return ret; return ret;
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment