diff options
Diffstat (limited to 'drivers/hwmon/wm831x-hwmon.c')
-rw-r--r-- | drivers/hwmon/wm831x-hwmon.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/hwmon/wm831x-hwmon.c b/drivers/hwmon/wm831x-hwmon.c index 9b598ed26020..07cb25ae69be 100644 --- a/drivers/hwmon/wm831x-hwmon.c +++ b/drivers/hwmon/wm831x-hwmon.c | |||
@@ -40,7 +40,7 @@ static ssize_t show_name(struct device *dev, | |||
40 | return sprintf(buf, "wm831x\n"); | 40 | return sprintf(buf, "wm831x\n"); |
41 | } | 41 | } |
42 | 42 | ||
43 | static const char *input_names[] = { | 43 | static const char * const input_names[] = { |
44 | [WM831X_AUX_SYSVDD] = "SYSVDD", | 44 | [WM831X_AUX_SYSVDD] = "SYSVDD", |
45 | [WM831X_AUX_USB] = "USB", | 45 | [WM831X_AUX_USB] = "USB", |
46 | [WM831X_AUX_BKUP_BATT] = "Backup battery", | 46 | [WM831X_AUX_BKUP_BATT] = "Backup battery", |
@@ -117,8 +117,10 @@ static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_chip_temp, NULL, | |||
117 | WM831X_AUX_CHIP_TEMP); | 117 | WM831X_AUX_CHIP_TEMP); |
118 | static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, show_label, NULL, | 118 | static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, show_label, NULL, |
119 | WM831X_AUX_CHIP_TEMP); | 119 | WM831X_AUX_CHIP_TEMP); |
120 | /* Report as a voltage since conversion depends on external components | 120 | /* |
121 | * and that's what the ABI wants. */ | 121 | * Report as a voltage since conversion depends on external components |
122 | * and that's what the ABI wants. | ||
123 | */ | ||
122 | static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_voltage, NULL, | 124 | static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_voltage, NULL, |
123 | WM831X_AUX_BATT_TEMP); | 125 | WM831X_AUX_BATT_TEMP); |
124 | static SENSOR_DEVICE_ATTR(temp2_label, S_IRUGO, show_label, NULL, | 126 | static SENSOR_DEVICE_ATTR(temp2_label, S_IRUGO, show_label, NULL, |