diff options
author | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-06-25 14:21:49 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-07-28 18:31:11 -0400 |
commit | 1061d8518f8bde548a03a5ff77dbe9a4202ad826 (patch) | |
tree | e5bd62c9c7d065c4acb249bc60e057b64023c32c /drivers/hwmon/pmbus/adm1275.c | |
parent | 9d2ecfb768bd2f8b41816a23b0f1dda026fef41d (diff) |
hwmon: (pmbus) Add support for VID output voltage mode
In VID mode, output voltages are measured and reported as VID values, and
have to be converted to voltages using VID conversion tables or functions.
Support is added for VR11 only at this time.
This patch enables support for PMBus devices supporting VID VR11 based output
voltage selection such as NCP4200 and NCP4208.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
Diffstat (limited to 'drivers/hwmon/pmbus/adm1275.c')
-rw-r--r-- | drivers/hwmon/pmbus/adm1275.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c index 8bc1bd663721..71770ffbdaf6 100644 --- a/drivers/hwmon/pmbus/adm1275.c +++ b/drivers/hwmon/pmbus/adm1275.c | |||
@@ -50,9 +50,9 @@ static int adm1275_probe(struct i2c_client *client, | |||
50 | } | 50 | } |
51 | 51 | ||
52 | info->pages = 1; | 52 | info->pages = 1; |
53 | info->direct[PSC_VOLTAGE_IN] = true; | 53 | info->format[PSC_VOLTAGE_IN] = direct; |
54 | info->direct[PSC_VOLTAGE_OUT] = true; | 54 | info->format[PSC_VOLTAGE_OUT] = direct; |
55 | info->direct[PSC_CURRENT_OUT] = true; | 55 | info->format[PSC_CURRENT_OUT] = direct; |
56 | info->m[PSC_CURRENT_OUT] = 807; | 56 | info->m[PSC_CURRENT_OUT] = 807; |
57 | info->b[PSC_CURRENT_OUT] = 20475; | 57 | info->b[PSC_CURRENT_OUT] = 20475; |
58 | info->R[PSC_CURRENT_OUT] = -1; | 58 | info->R[PSC_CURRENT_OUT] = -1; |