staging: typec: tcpm: make function tcpm_get_pwr_opmode
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 <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ac985b6cd9
commit
53b70e5c2e
|
@ -2131,7 +2131,7 @@ static void tcpm_swap_complete(struct tcpm_port *port, int result)
|
|||
}
|
||||
}
|
||||
|
||||
enum typec_pwr_opmode tcpm_get_pwr_opmode(enum typec_cc_status cc)
|
||||
static enum typec_pwr_opmode tcpm_get_pwr_opmode(enum typec_cc_status cc)
|
||||
{
|
||||
switch (cc) {
|
||||
case TYPEC_CC_RP_1_5:
|
||||
|
|
Loading…
Reference in New Issue