]> 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>
Mon, 19 Dec 2011 21:56:32 +0000 (13:56 -0800)
commit2fb8f086d16bdf99c69634794efb9a51e79b73a2
treef14986eb28432751819400648a414076e032a6ce
parente8fe7a5a287646dbffc7a88483268e6d499c03b2
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>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/zl6100.c