]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: typec: tcpm: make function tcpm_get_pwr_opmode
authorColin Ian King <colin.king@canonical.com>
Tue, 22 Aug 2017 16:02:18 +0000 (17:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2017 01:36:14 +0000 (18:36 -0700)
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>
drivers/staging/typec/tcpm.c

index 7b5ba27dd935574ba4b46beb1a4d4b159f33e594..a911cad41a59be3b98b38c8b38f621bd914e12b2 100644 (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: