diff options
-rw-r--r-- | drivers/hwmon/ina2xx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c index 8e7158c3ad2f..4958b2f89dce 100644 --- a/drivers/hwmon/ina2xx.c +++ b/drivers/hwmon/ina2xx.c | |||
@@ -186,20 +186,20 @@ static ssize_t ina2xx_show_value(struct device *dev, | |||
186 | } | 186 | } |
187 | 187 | ||
188 | /* shunt voltage */ | 188 | /* shunt voltage */ |
189 | static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, \ | 189 | static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, ina2xx_show_value, NULL, |
190 | ina2xx_show_value, NULL, INA2XX_SHUNT_VOLTAGE); | 190 | INA2XX_SHUNT_VOLTAGE); |
191 | 191 | ||
192 | /* bus voltage */ | 192 | /* bus voltage */ |
193 | static SENSOR_DEVICE_ATTR(in1_input, S_IRUGO, \ | 193 | static SENSOR_DEVICE_ATTR(in1_input, S_IRUGO, ina2xx_show_value, NULL, |
194 | ina2xx_show_value, NULL, INA2XX_BUS_VOLTAGE); | 194 | INA2XX_BUS_VOLTAGE); |
195 | 195 | ||
196 | /* calculated current */ | 196 | /* calculated current */ |
197 | static SENSOR_DEVICE_ATTR(curr1_input, S_IRUGO, \ | 197 | static SENSOR_DEVICE_ATTR(curr1_input, S_IRUGO, ina2xx_show_value, NULL, |
198 | ina2xx_show_value, NULL, INA2XX_CURRENT); | 198 | INA2XX_CURRENT); |
199 | 199 | ||
200 | /* calculated power */ | 200 | /* calculated power */ |
201 | static SENSOR_DEVICE_ATTR(power1_input, S_IRUGO, \ | 201 | static SENSOR_DEVICE_ATTR(power1_input, S_IRUGO, ina2xx_show_value, NULL, |
202 | ina2xx_show_value, NULL, INA2XX_POWER); | 202 | INA2XX_POWER); |
203 | 203 | ||
204 | /* pointers to created device attributes */ | 204 | /* pointers to created device attributes */ |
205 | static struct attribute *ina2xx_attributes[] = { | 205 | static struct attribute *ina2xx_attributes[] = { |