iio: adc: sc27xx: refactor some functions for support more PMiCs
authorCixi Geng <cixi.geng1@unisoc.com>
Tue, 19 Apr 2022 14:24:56 +0000 (22:24 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 28 Apr 2022 18:22:56 +0000 (19:22 +0100)
commitaac053d03eecb3141268e360696f90e68d78e8ad
tree27523c416724dce41b40fff56301c581fa8c75bc
parente4171388a431d43048f8b1ca1734645b4e1a8a4d
iio: adc: sc27xx: refactor some functions for support more PMiCs

Refactor the common adc_nvmem_cell_calib_data,adc_to_volt and call
these in the origin sc27xx_adc_scale_calibration,sc27xx_adc_to_volt

Signed-off-by: Cixi Geng <cixi.geng1@unisoc.com>
Link: https://lore.kernel.org/r/20220419142458.884933-6-gengcixi@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/sc27xx_adc.c