Re: [PATCH][staging-next] staging: typec: tcpm: make function tcpm_get_pwr_opmode

2017-08-27 Thread Guenter Roeck
On Tue, Aug 22, 2017 at 05:02:18PM +0100, Colin King wrote: > From: Colin Ian King > > The function pointer tcpm_get_pwr_opmode is local to the source and does > not need to be in global scope, so make it static. > > Cleans up sparse warning: > symbol

[PATCH][staging-next] staging: typec: tcpm: make function tcpm_get_pwr_opmode

2017-08-22 Thread Colin King
From: Colin Ian King The function pointer tcpm_get_pwr_opmode is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'tcpm_get_pwr_opmode' was not declared. Should it be static? Signed-off-by: Colin Ian King