]> asedeno.scripts.mit.edu Git - linux.git/commit
hwmon: (it87) Simplify reading voltage registers
authorGuenter Roeck <linux@roeck-us.net>
Wed, 1 Apr 2015 17:15:38 +0000 (10:15 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:37 +0000 (06:32 -0700)
commit559313c4e9b29f5d0ba246f69d1052ef2fd9b423
treea5bbd377520dc3780f49dec6b4fa7e909c10e002
parentcc18da79d9b7faf1ec617e2478d57d25d7b2f93a
hwmon: (it87) Simplify reading voltage registers

Voltage registers are non-sequential. Use a register array instead
of a macro to map sensor index to register to simplify the code
and to make it easier to add additional voltage sensors.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c