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>
Thu, 5 Jan 2012 16:19:28 +0000 (08:19 -0800)
commit56badacb922ac6117c8231716265301118b22b17
treeabcc42e210c3e9d44a03afc7bf046058166bd29b
parent443830f6fd986b894da2ea7403163a64c0925f54
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