hwmon: (lm90) Refactor reading of config2 register
authorJean Delvare <khali@linux-fr.org>
Sun, 24 Jul 2011 18:37:05 +0000 (20:37 +0200)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 29 Jul 2011 03:16:36 +0000 (20:16 -0700)
commitf90be42fb383f39aa814b8e14de138da8973e5c1
treec32c4a3d2d1c07e11cdb605c682af1a00e731634
parent6d101c588f0fe08ef00f16c1a93762dd5d563df7
hwmon: (lm90) Refactor reading of config2 register

Several vendors implement a second configuration register, which we
check during device detection. Refactor the code to avoid duplication.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Stijn Devriendt <sdevrien@cisco.com>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/lm90.c