]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e2ddf1c408d4c1a42af2ffacd6768255b62869d
treee8d0c4edb50b3728eceb0e4c98368bbc71b38680
parentd9407a95dbbc08c9f73ad9d8eefcee4946a9b09b
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