diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2012-01-08 13:34:19 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:26:33 -0400 |
commit | a6100f6b49bf8e30c42add718db47f7c39392f5b (patch) | |
tree | 5ad31e0ddeb8c735604fcbd1ef52d8d1f9563933 /drivers/hwmon/wm831x-hwmon.c | |
parent | 839a9eefc918345ae7a7e8c6f583e2e653646d4d (diff) |
hwmon: (wm831x-hwmon) fix checkpatch issues
fixed:
WARNING: static const char * array should probably be static const char * const
+static const char *input_names[] = {
not fixed (will probably provide separate fix later)
ERROR: Macros with multiple statements should be enclosed in a do - while loop
+#define WM831X_NAMED_VOLTAGE(id, name) \
+ WM831X_VOLTAGE(id, name); \
+ static SENSOR_DEVICE_ATTR(in##id##_label, S_IRUGO, show_label, \
+ NULL, name)
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/wm831x-hwmon.c')
-rw-r--r-- | drivers/hwmon/wm831x-hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/wm831x-hwmon.c b/drivers/hwmon/wm831x-hwmon.c index 9b598ed26020..23b44de76740 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", |