]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 28 Jul 2011 18:48:21 +0000 (11:48 -0700)
commit4402e0a016c8e5c46357a2407385486f80499fcb
tree9f7275c7617d0cb83de65e90a5249b97f22f752a
parentde02d4c25505eca135dc614ed1f494c9fee7636b
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