]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: sc27xx: structure adjustment and optimization
authorCixi Geng <cixi.geng1@unisoc.com>
Tue, 19 Apr 2022 14:24:55 +0000 (22:24 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 28 Apr 2022 18:22:56 +0000 (19:22 +0100)
commitdc733ab691ae292fe227a5354d346f022f617d42
treed7849a46bae226268d1868e76e27090ad80e4de3
parent3915de3ee6b5815afa01dbcbbbe81a5ac538196e
iio: adc: sc27xx: structure adjustment and optimization

Introduce one variant device data structure to be compatible
with SC2731 PMIC since it has different scale and ratio calculation
and so on. also rename the SC27xx to SC2731 for some definition
and function.

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