diff options
Diffstat (limited to 'drivers/hwmon/pmbus/pmbus.h')
-rw-r--r-- | drivers/hwmon/pmbus/pmbus.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h index 50647ab7235a..cc5b6a23260b 100644 --- a/drivers/hwmon/pmbus/pmbus.h +++ b/drivers/hwmon/pmbus/pmbus.h | |||
@@ -266,11 +266,11 @@ enum pmbus_sensor_classes { | |||
266 | #define PMBUS_HAVE_STATUS_FAN12 (1 << 16) | 266 | #define PMBUS_HAVE_STATUS_FAN12 (1 << 16) |
267 | #define PMBUS_HAVE_STATUS_FAN34 (1 << 17) | 267 | #define PMBUS_HAVE_STATUS_FAN34 (1 << 17) |
268 | 268 | ||
269 | enum pmbus_data_format { linear = 0, direct, vid }; | ||
270 | |||
269 | struct pmbus_driver_info { | 271 | struct pmbus_driver_info { |
270 | int pages; /* Total number of pages */ | 272 | int pages; /* Total number of pages */ |
271 | bool direct[PSC_NUM_CLASSES]; | 273 | enum pmbus_data_format format[PSC_NUM_CLASSES]; |
272 | /* true if device uses direct data format | ||
273 | for the given sensor class */ | ||
274 | /* | 274 | /* |
275 | * Support one set of coefficients for each sensor type | 275 | * Support one set of coefficients for each sensor type |
276 | * Used for chips providing data in direct mode. | 276 | * Used for chips providing data in direct mode. |
@@ -299,6 +299,7 @@ struct pmbus_driver_info { | |||
299 | 299 | ||
300 | int pmbus_set_page(struct i2c_client *client, u8 page); | 300 | int pmbus_set_page(struct i2c_client *client, u8 page); |
301 | int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg); | 301 | int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg); |
302 | int pmbus_read_byte_data(struct i2c_client *client, u8 page, u8 reg); | ||
302 | void pmbus_clear_faults(struct i2c_client *client); | 303 | void pmbus_clear_faults(struct i2c_client *client); |
303 | bool pmbus_check_byte_register(struct i2c_client *client, int page, int reg); | 304 | bool pmbus_check_byte_register(struct i2c_client *client, int page, int reg); |
304 | bool pmbus_check_word_register(struct i2c_client *client, int page, int reg); | 305 | bool pmbus_check_word_register(struct i2c_client *client, int page, int reg); |