diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-09-09 12:51:00 -0400 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2017-10-23 01:10:25 -0400 |
commit | 5183240cde56e6ab5b78120b041e009cd0c5b345 (patch) | |
tree | 1df0f81b511d4da5f2601564c3a836d85d6d3c7c /drivers/extcon/extcon.c | |
parent | 176aa36012135d172394a928a03fb03dfecd83f9 (diff) |
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 <colin.king@canonical.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon.c')
-rw-r--r-- | drivers/extcon/extcon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index 35e9fb885486..cb38c2747684 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | #define SUPPORTED_CABLE_MAX 32 | 37 | #define SUPPORTED_CABLE_MAX 32 |
38 | 38 | ||
39 | struct __extcon_info { | 39 | static const struct __extcon_info { |
40 | unsigned int type; | 40 | unsigned int type; |
41 | unsigned int id; | 41 | unsigned int id; |
42 | const char *name; | 42 | const char *name; |