mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
power: supply: generic-adc-battery: improve error message
Add device context and error code to the error messages to make it useful. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
ca0f6e0d14
commit
4fc1befb3a
|
|
@ -92,7 +92,7 @@ static int read_channel(struct gab *adc_bat, enum gab_chan_type channel,
|
|||
|
||||
ret = iio_read_channel_processed(adc_bat->channel[channel], result);
|
||||
if (ret < 0)
|
||||
pr_err("read channel error\n");
|
||||
dev_err(&adc_bat->psy->dev, "read channel error: %d\n", ret);
|
||||
else
|
||||
*result *= 1000;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user