Commits
Robin Gong committed 4700421b270
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>