aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-01-20 12:29:44 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-03-18 21:26:58 -0400
commit3c4c4971912d9786100012b94d4ae08a8995f0e7 (patch)
treee14d2132f878a2df36744fe2e68fbf1bfede4f1f /drivers
parent8deeac82b3f3e73f50ca7109ea0029764b33874f (diff)
hwmon: (it87) Constify fixed string arrays
Make checkpatch happy by constifying fixed string arrays. Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/it87.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
index 93a197bd315a..0b204e4cf51c 100644
--- a/drivers/hwmon/it87.c
+++ b/drivers/hwmon/it87.c
@@ -1341,12 +1341,12 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL);
1341static ssize_t show_label(struct device *dev, struct device_attribute *attr, 1341static ssize_t show_label(struct device *dev, struct device_attribute *attr,
1342 char *buf) 1342 char *buf)
1343{ 1343{
1344 static const char *labels[] = { 1344 static const char * const labels[] = {
1345 "+5V", 1345 "+5V",
1346 "5VSB", 1346 "5VSB",
1347 "Vbat", 1347 "Vbat",
1348 }; 1348 };
1349 static const char *labels_it8721[] = { 1349 static const char * const labels_it8721[] = {
1350 "+3.3V", 1350 "+3.3V",
1351 "3VSB", 1351 "3VSB",
1352 "Vbat", 1352 "Vbat",
@@ -1815,7 +1815,7 @@ static int __devinit it87_probe(struct platform_device *pdev)
1815 int err = 0, i; 1815 int err = 0, i;
1816 int enable_pwm_interface; 1816 int enable_pwm_interface;
1817 int fan_beep_need_rw; 1817 int fan_beep_need_rw;
1818 static const char *names[] = { 1818 static const char * const names[] = {
1819 "it87", 1819 "it87",
1820 "it8712", 1820 "it8712",
1821 "it8716", 1821 "it8716",