OSDN Git Service

iio: adc: ti-ads1015: Switch to static const writeable ranges table
authorMarek Vasut <marex@denx.de>
Mon, 28 Mar 2022 19:47:18 +0000 (21:47 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 4 Apr 2022 08:11:26 +0000 (09:11 +0100)
commitc86334652ac66f3e21c04dffbba766c57ff1f050
treee545d665570c4afbe7ad06549e08c320962d32f3
parent94d9f3cb97f4a2c88d9040504cfcef114adb0741
iio: adc: ti-ads1015: Switch to static const writeable ranges table

Switch the driver from code implementing test whether a regmap register
is writeable to static const tables describing the test. No functional
change.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20220328194725.149150-3-marex@denx.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads1015.c