iio: adc: axp20x_adc: Replace adc_en2 flag with adc_en2_mask field
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Fri, 17 Feb 2023 15:34:04 +0000 (15:34 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 Mar 2023 12:18:28 +0000 (12:18 +0000)
commitc286b0472ca8d76092c1f4fb782c6745b26e74f6
tree73640a447fc36228772f2198d48d5a21b59e8832
parent8957e5344353e9cd3f6b1e3004942e35449fa0e8
iio: adc: axp20x_adc: Replace adc_en2 flag with adc_en2_mask field

The adc_en2 flag is essentially specific to axp20x-compatible devices
because it hardcodes register values. Replace it with a mask field
so the register value can be specified in device match data.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20230217153404.32481-2-aidanmacdonald.0x0@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/axp20x_adc.c