hwmon: (tmp401) Hide register write address differences in regmap code
authorGuenter Roeck <linux@roeck-us.net>
Tue, 9 Nov 2021 21:18:26 +0000 (13:18 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 26 Dec 2021 23:02:05 +0000 (15:02 -0800)
commitff300b71ba3860d282f77774d2b02ec49ad0e9cf
treee8d0c4edb50b3728eceb0e4c98368bbc71b38680
parent50152fb6c1a197271b8916b8225525a6ca71e9ee
hwmon: (tmp401) Hide register write address differences in regmap code

Since we are using regmap access functions to write into chip registers,
we can hide the difference in register write addresses within regmap
code. By doing this we do not need to clear the regmap cache on register
writes, and the high level code does not need to bother about different
read/write register addresses.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp401.c