]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (pmbus/zl6100) Only instantiate external temperature sensor if enabled
authorGuenter Roeck <guenter.roeck@ericsson.com>
Wed, 5 Oct 2011 00:26:04 +0000 (17:26 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 27 Nov 2011 17:51:56 +0000 (09:51 -0800)
commit14bab44df19ea944faa0b57c1a45c67e0c48f07f
tree46dd419e73d2e1c776c916ea94d69ab2be333e90
parent00b777e7bb7bf1bad8af8a08e7e785d70861a48a
hwmon: (pmbus/zl6100) Only instantiate external temperature sensor if enabled

BMR4xx devices don't have an external temperature sensor,
and instantiating it does not provide value anyway if it is disabled.
Only instantiate it if it is enabled.

Also optimize wait time between I2C chip accesses in the probe function, and
replace unnecessary check for support for I2C_FUNC_SMBUS_READ_BYTE_DATA with
now required support for I2C_FUNC_SMBUS_READ_WORD_DATA.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/pmbus/zl6100.c