summaryrefslogtreecommitdiff
path: root/drivers/staging/typec
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-08-22 17:02:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-22 18:36:14 -0700
commit53b70e5c2ed60135e2b6262bd4f95faddc10a00a (patch)
tree555502ce4dec1478ce644abe4e5ad655219d964a /drivers/staging/typec
parentac985b6cd9340bf5c9550edd86e1f94e48cabb63 (diff)
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>
Diffstat (limited to 'drivers/staging/typec')
-rw-r--r--drivers/staging/typec/tcpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/typec/tcpm.c b/drivers/staging/typec/tcpm.c
index 7b5ba27dd935..a911cad41a59 100644
--- a/drivers/staging/typec/tcpm.c
+++ b/drivers/staging/typec/tcpm.c
@@ -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: