]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Simplify handling of extended local temp register
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Jul 2011 06:22:25 +0000 (23:22 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 29 Jul 2011 03:16:35 +0000 (20:16 -0700)
commitcbbbb2b058adcee18a84e534388345139a061bdf
tree2772a19fb7f61130e772f1364502e133f636cd18
parent72e095ea16856661a546fa71b3bc22ffdcef9eff
hwmon: (lm90) Simplify handling of extended local temp register

The optional extended local temperature register can never have
address 0, as this address is already used by another register. Thus
we can get rid of flag LM90_HAVE_LOCAL_EXT and simply rely on
reg_local_ext being non-zero to determine if a given chip has this
extension or not. This makes the code more simple.

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