]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: adc: modify NPCM ADC read reference voltage
authorTomer Maimon <tmaimon77@gmail.com>
Sun, 7 Apr 2019 08:19:28 +0000 (11:19 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 7 Apr 2019 10:26:47 +0000 (11:26 +0100)
commit4e63ed6b90803eeb400c392e9ff493200d926b06
tree80cb05024960d2ff83fecb56ccdfd27dab5e01bf
parent131ac62253dba79daf4a6d83ab12293d2b9863d3
iio: adc: modify NPCM ADC read reference voltage

Checking if regulator is valid before reading
NPCM ADC regulator voltage to avoid system crash
in a case the regulator is not valid.

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/npcm_adc.c