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:
Colin Ian King 2017-08-22 17:02:18 +01:00 committed by Greg Kroah-Hartman
parent ac985b6cd9
commit 53b70e5c2e
1 changed files with 1 additions and 1 deletions

View File

@ -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: