From: Guenter Roeck Date: Wed, 5 Oct 2011 00:26:04 +0000 (-0700) Subject: hwmon: (pmbus/zl6100) Only instantiate external temperature sensor if enabled X-Git-Tag: v3.3-rc1~162^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56badacb922ac6117c8231716265301118b22b17;p=pandora-kernel.git 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 Reviewed-by: Robert Coulson --- Reading git-diff-tree failed