mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-18 21:14:28 +00:00
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>
This commit is contained in:
parent
8deeac82b3
commit
3c4c497191
1 changed files with 3 additions and 3 deletions
|
@ -1341,12 +1341,12 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL);
|
||||||
static ssize_t show_label(struct device *dev, struct device_attribute *attr,
|
static ssize_t show_label(struct device *dev, struct device_attribute *attr,
|
||||||
char *buf)
|
char *buf)
|
||||||
{
|
{
|
||||||
static const char *labels[] = {
|
static const char * const labels[] = {
|
||||||
"+5V",
|
"+5V",
|
||||||
"5VSB",
|
"5VSB",
|
||||||
"Vbat",
|
"Vbat",
|
||||||
};
|
};
|
||||||
static const char *labels_it8721[] = {
|
static const char * const labels_it8721[] = {
|
||||||
"+3.3V",
|
"+3.3V",
|
||||||
"3VSB",
|
"3VSB",
|
||||||
"Vbat",
|
"Vbat",
|
||||||
|
@ -1815,7 +1815,7 @@ static int __devinit it87_probe(struct platform_device *pdev)
|
||||||
int err = 0, i;
|
int err = 0, i;
|
||||||
int enable_pwm_interface;
|
int enable_pwm_interface;
|
||||||
int fan_beep_need_rw;
|
int fan_beep_need_rw;
|
||||||
static const char *names[] = {
|
static const char * const names[] = {
|
||||||
"it87",
|
"it87",
|
||||||
"it8712",
|
"it8712",
|
||||||
"it8716",
|
"it8716",
|
||||||
|
|
Loading…
Add table
Reference in a new issue