Re: [PATCH] extcon: make extcon_info static const, fixes warning

2017-09-10 Thread Chanwoo Choi
On 2017년 09월 10일 01:51, Colin King wrote: > From: Colin Ian King > > 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

[PATCH] extcon: make extcon_info static const, fixes warning

2017-09-09 Thread Colin King
From: Colin Ian King 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 --- drivers/extcon/extcon.c | 2 +-