diff options
Diffstat (limited to 'drivers/hwmon/max34440.c')
-rw-r--r-- | drivers/hwmon/max34440.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/max34440.c b/drivers/hwmon/max34440.c index 992b701b4c5e..db11e1a175b2 100644 --- a/drivers/hwmon/max34440.c +++ b/drivers/hwmon/max34440.c | |||
@@ -32,7 +32,7 @@ enum chips { max34440, max34441 }; | |||
32 | #define MAX34440_STATUS_OT_FAULT (1 << 5) | 32 | #define MAX34440_STATUS_OT_FAULT (1 << 5) |
33 | #define MAX34440_STATUS_OT_WARN (1 << 6) | 33 | #define MAX34440_STATUS_OT_WARN (1 << 6) |
34 | 34 | ||
35 | static int max34440_get_status(struct i2c_client *client, int page, int reg) | 35 | static int max34440_read_byte_data(struct i2c_client *client, int page, int reg) |
36 | { | 36 | { |
37 | int ret; | 37 | int ret; |
38 | int mfg_status; | 38 | int mfg_status; |
@@ -108,7 +108,7 @@ static struct pmbus_driver_info max34440_info[] = { | |||
108 | .func[11] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, | 108 | .func[11] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, |
109 | .func[12] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, | 109 | .func[12] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, |
110 | .func[13] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, | 110 | .func[13] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, |
111 | .get_status = max34440_get_status, | 111 | .read_byte_data = max34440_read_byte_data, |
112 | }, | 112 | }, |
113 | [max34441] = { | 113 | [max34441] = { |
114 | .pages = 12, | 114 | .pages = 12, |
@@ -149,7 +149,7 @@ static struct pmbus_driver_info max34440_info[] = { | |||
149 | .func[9] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, | 149 | .func[9] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, |
150 | .func[10] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, | 150 | .func[10] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, |
151 | .func[11] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, | 151 | .func[11] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, |
152 | .get_status = max34440_get_status, | 152 | .read_byte_data = max34440_read_byte_data, |
153 | }, | 153 | }, |
154 | }; | 154 | }; |
155 | 155 | ||