summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-12-17 09:29:10 -0800
committerGuenter Roeck <linux@roeck-us.net>2024-12-20 06:55:49 -0800
commit6da24a25f766e02fbfc07570b5560154818ba59d (patch)
tree24463d3a73e37ce7f2ef325a9644dfb742f88afb /tools
parentde076198d1e4934c5fc17aa52d5f1884f469ce1a (diff)
hwmon: (lm75) Hide register size differences in regmap access functions
Hide register size differences in regmap access functions to simplify runtime code and to simplify adding support for I3C devices. Also use regmap API functions for bit operations where possible. For this to work, the 16-bit and 8-bit configuration register has to be mapped to a 16-bit value. Unlike other registers, this register is a low-byte-first register, presumably for compatibility with chips with 8-bit wide configuration registers. Hide the differences in the regmap access code. While at it, enable alarm attribute support for TMP112. Cc: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions