]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: rohm-bd79112: Use regmap_reg_range()
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 27 Oct 2025 12:50:30 +0000 (14:50 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 12:57:04 +0000 (12:57 +0000)
commitd2e805319bf092ea748cbfe84b775e1f398ed9b3
treed53046381152db45a240f6e41828088f7dbda02c
parent1d165919c8261b927f8dc8cfe61eb04342bedb7e
iio: adc: rohm-bd79112: Use regmap_reg_range()

Initializing the regmap_ranges using direct assignment to the range_min
and range_max members is slightly verbose. We can make it a tad cleaner
when using the regmap_reg_range() macro.

Clean up the code using regmap_reg_range() when initializing the
regmap_range structure.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/rohm-bd79112.c