projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
176aa36
)
extcon: make extcon_info static const, fixes warning
author
Colin Ian King
<colin.king@canonical.com>
Sat, 9 Sep 2017 16:51:00 +0000
(17:51 +0100)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 23 Oct 2017 05:10:25 +0000
(14:10 +0900)
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>
drivers/extcon/extcon.c
patch
|
blob
|
history
diff --git
a/drivers/extcon/extcon.c
b/drivers/extcon/extcon.c
index
35e9fb8
..
cb38c27
100644
(file)
--- a/
drivers/extcon/extcon.c
+++ b/
drivers/extcon/extcon.c
@@
-36,7
+36,7
@@
#define SUPPORTED_CABLE_MAX 32
-struct __extcon_info {
+st
atic const st
ruct __extcon_info {
unsigned int type;
unsigned int id;
const char *name;