]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: meson: simplify MESON_SAR_ADC_REG11 register access
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 24 Dec 2024 14:29:41 +0000 (15:29 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:16 +0000 (14:28 +0000)
commit4467dfddc555d66d34e29f064c086663f81d1fd4
treee4acd097c74120509c4541f28634f86655579201
parenta61e9c4fa2e852a40dd87ce3a38266c90a16d178
iio: adc: meson: simplify MESON_SAR_ADC_REG11 register access

Simply check the max_register value to decide whether
MESON_SAR_ADC_REG11 is present on the current IP revision. This allows
dropping two additional bool fields from struct meson_sar_adc_param
which previously had to be manually kept in sync. No functional changes
intended.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://patch.msgid.link/20241224142941.97759-4-martin.blumenstingl@googlemail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c