]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: rohm-bd79124: Use regmap_reg_range()
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 27 Oct 2025 12:50:51 +0000 (14:50 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 12:57:05 +0000 (12:57 +0000)
commita337775ed8e7f9a8cf273cd61a3920f73aa9b422
tree272f9549bc6c1b669de1050554f52c02d0fc7330
parentd2e805319bf092ea748cbfe84b775e1f398ed9b3
iio: adc: rohm-bd79124: 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-bd79124.c