hwmon: (adt7x10) Convert to use regmap
authorGuenter Roeck <linux@roeck-us.net>
Thu, 23 Dec 2021 18:32:05 +0000 (10:32 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 7 Feb 2022 22:30:25 +0000 (14:30 -0800)
commit495da5954e1576df73f73d1a0b6e7dde44e1e8c3
tree4225a8e2ff4da4fdee11bbb0581034dc5f171727
parent0aba23b2ba9ab79d6b88a67aa8b80d442270ae35
hwmon: (adt7x10) Convert to use regmap

Using regmap lets us use the regmap subsystem for SPI vs. I2C register
accesses. It lets us hide access differences in backend code and lets
the common code just access registers without knowing their size.
We can also use regmap for register caching.

Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/Kconfig
drivers/hwmon/adt7310.c
drivers/hwmon/adt7410.c
drivers/hwmon/adt7x10.c
drivers/hwmon/adt7x10.h