]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (tmp401) Simplify temperature register arrays
authorGuenter Roeck <linux@roeck-us.net>
Sun, 17 Oct 2021 14:47:43 +0000 (07:47 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 26 Dec 2021 23:02:05 +0000 (15:02 -0800)
commitbbba4d7621871816f07186b9a321ccacf40ca2c3
tree3f7973b9040d094665f38c65cef99575082f0bf8
parent10a7cc050046d17134b0747e07d9d7040d6cde4d
hwmon: (tmp401) Simplify temperature register arrays

The difference between TMP431 and other chips of this series is that the
TMP431 has an additional sensor. The register addresses for other sensors
are the same for all chips. It is therefore unnecessary to maintain two
different arrays for TMP431 and the other chips. Just use the same array
for all chips and add the TMP431 register addresses as third column.

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