Skip to content

Commit

Permalink
hwmon: (nct6775) Constify strings
Browse files Browse the repository at this point in the history
nct6775_sio_names should be a constant pointer to an array of
constant strings.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Guenter Roeck committed Apr 21, 2013
1 parent 29dd3b6 commit 6d4b362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/nct6775.c
Original file line number Diff line number Diff line change
Expand Up @@ -4035,7 +4035,7 @@ static struct platform_driver nct6775_driver = {
.remove = nct6775_remove,
};

static const char *nct6775_sio_names[] __initconst = {
static const char * const nct6775_sio_names[] __initconst = {
"NCT6775F",
"NCT6776D/F",
"NCT6779D",
Expand Down

0 comments on commit 6d4b362

Please sign in to comment.