commit | f90be42fb383f39aa814b8e14de138da8973e5c1 | [log] [tgz] |
---|---|---|
author | Jean Delvare <khali@linux-fr.org> | Sun Jul 24 20:37:05 2011 +0200 |
committer | Guenter Roeck <guenter.roeck@ericsson.com> | Thu Jul 28 20:16:36 2011 -0700 |
tree | c32c4a3d2d1c07e11cdb605c682af1a00e731634 | |
parent | 6d101c588f0fe08ef00f16c1a93762dd5d563df7 [diff] |
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>