linux-brain/drivers/power
Robin Gong 4700421b27 MLK-14473-2: power: supply: sabresd_battery: check max11801_read_adc()
part2 of commit(b4568bee5d2a11d55fbd6272297e0ff67ebac941).
The function calibration_voltage is calling max11801_read_adc from
touchscreen driverm which can return negative values in case of an
error. I case of an error, just stop reading ADC data and return 0 as
voltage_data.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
2019-11-25 16:29:42 +08:00
..
avs power: avs: smartreflex: no need to check return value of debugfs_create functions 2019-06-18 10:54:32 +02:00
reset power: reset: reboot-mode: Fix author email format 2019-09-02 21:05:59 +02:00
supply MLK-14473-2: power: supply: sabresd_battery: check max11801_read_adc() 2019-11-25 16:29:42 +08:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00