power: supply: lego_ev3_battery: Don't ignore iio_read_channel_processed() return...
authorDavid Lechner <david@lechnology.com>
Fri, 20 Jul 2018 20:19:43 +0000 (15:19 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Sun, 22 Jul 2018 21:33:43 +0000 (23:33 +0200)
commit6e92cecb1e1b073c0cbd1e0e0f338803e0df1924
tree6e538170f46f7db8dc44529bb83543284d4a0c86
parent0d949905271daed53f1fa3f31db178f987217605
power: supply: lego_ev3_battery: Don't ignore iio_read_channel_processed() return value

This changes the LEGO MINDSTORMS EV3 power supply driver to return an
error if iio_read_channel_processed() fails.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/lego_ev3_battery.c