]> 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)
commitd0f6d0e55cba8677620224df4c914b544de19096
treed7849a46bae226268d1868e76e27090ad80e4de3
parente9c46c07550e50220af0d7565f992115526d20fd
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