diff options
author | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-10-04 17:26:04 -0700 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-01-05 08:19:28 -0800 |
commit | 56badacb922ac6117c8231716265301118b22b17 (patch) | |
tree | abcc42e210c3e9d44a03afc7bf046058166bd29b /kernel/ptrace.c | |
parent | 443830f6fd986b894da2ea7403163a64c0925f54 (diff) | |
download | blackbird-op-linux-56badacb922ac6117c8231716265301118b22b17.tar.gz blackbird-op-linux-56badacb922ac6117c8231716265301118b22b17.zip |
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>
Diffstat (limited to 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions