]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: axp20x_adc: Add adc_en1 and adc_en2 to axp_data
authorChris Morgan <macromorgan@hotmail.com>
Wed, 21 Aug 2024 21:54:42 +0000 (16:54 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 7 Sep 2024 13:27:32 +0000 (14:27 +0100)
commitc7ac44751d18c53230bd86b4e13b361abd9590bb
treeffb21ecce6f76d76ef18d2a79f3cb03bae3034a6
parentd1360cc7ffc1837111d843058fbded1b38f387ba
iio: adc: axp20x_adc: Add adc_en1 and adc_en2 to axp_data

Add the register for adc_en1 and adc_en2 to the axp_data struct. This
allows us to specify a different register to enable the adc channels
for different devices such as the AXP717.

Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240821215456.962564-2-macroalpha82@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/axp20x_adc.c