diff options
| author | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-06-30 06:57:41 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-03 12:42:24 -0700 |
| commit | dd3e1c4614e7f6d09aefb6c83c219a6819556be4 (patch) | |
| tree | 70a4b634a06b54a846dcf24db38cda9b71ef1444 | |
| parent | ba46bc74116de89360aa481f7bb08d7fe3fd9f06 (diff) | |
hwmon: (pmbus) Auto-detect temp2 and temp3 registers/attributes
commit 0e502ec889d33bfcb348e420d7e105bc61c45eb4 upstream.
Additional temperature attribute support is easy to detect, so do it.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| -rw-r--r-- | drivers/hwmon/pmbus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hwmon/pmbus.c b/drivers/hwmon/pmbus.c index 98e2e28899e2..b5dc8837e9ef 100644 --- a/drivers/hwmon/pmbus.c +++ b/drivers/hwmon/pmbus.c @@ -63,6 +63,10 @@ static void pmbus_find_sensor_groups(struct i2c_client *client, PMBUS_STATUS_TEMPERATURE)) info->func[0] |= PMBUS_HAVE_STATUS_TEMP; } + if (pmbus_check_word_register(client, 0, PMBUS_READ_TEMPERATURE_2)) + info->func[0] |= PMBUS_HAVE_TEMP2; + if (pmbus_check_word_register(client, 0, PMBUS_READ_TEMPERATURE_3)) + info->func[0] |= PMBUS_HAVE_TEMP3; /* Sensors detected on all pages */ for (page = 0; page < info->pages; page++) { |
