From: Colin Ian King Date: Sat, 9 Sep 2017 16:51:00 +0000 (+0100) Subject: extcon: make extcon_info static const, fixes warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5183240cde56e6ab5b78120b041e009cd0c5b345;p=linux.git extcon: make extcon_info static const, fixes warning The array extcon_info is read only, local to the source and does not need to be in global scope, so make it static const. Cleans up sparse warning: symbol 'extcon_info' was not declared. Should it be static? Signed-off-by: Colin Ian King Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index 35e9fb885486e..cb38c27476847 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -36,7 +36,7 @@ #define SUPPORTED_CABLE_MAX 32 -struct __extcon_info { +static const struct __extcon_info { unsigned int type; unsigned int id; const char *name;