hwmon: (lm90) Simplify handling of extended local temp register
commita095f687f1e19c54147bd51f735717508a49e225
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Jul 2011 06:22:25 +0000 (27 23:22 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 29 Jul 2011 03:16:35 +0000 (28 20:16 -0700)
tree2772a19fb7f61130e772f1364502e133f636cd18
parent03e9bd8dbcee60c2e22fd54f9f28f0d32da218c3
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