misc: rtsx: make various functions static

The functions rts5260_get_ocpstat, rts5260_get_ocpstat2,
rts5260_clear_ocpstat, rts5260_process_ocp, rts5260_init_hw and
rts5260_set_aspm are local to the source and do not need to be
in global scope, so make them static.

Cleans up sparse warnings:
symbol 'rts5260_get_ocpstat' was not declared. Should it be static?
symbol 'rts5260_get_ocpstat2' was not declared. Should it be static?
symbol 'rts5260_clear_ocpstat' was not declared. Should it be static?
symbol 'rts5260_process_ocp' was not declared. Should it be static?
symbol 'rts5260_init_hw' was not declared. Should it be static?
symbol 'rts5260_set_aspm' 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 2018-02-07 13:23:27 +00:00 committed by Greg Kroah-Hartman
parent f33ff110ef
commit 75a898051d
1 changed files with 6 additions and 6 deletions

View File

@ -388,17 +388,17 @@ static void rts5260_disable_ocp(struct rtsx_pcr *pcr)
OC_POWER_DOWN); OC_POWER_DOWN);
} }
int rts5260_get_ocpstat(struct rtsx_pcr *pcr, u8 *val) static int rts5260_get_ocpstat(struct rtsx_pcr *pcr, u8 *val)
{ {
return rtsx_pci_read_register(pcr, REG_OCPSTAT, val); return rtsx_pci_read_register(pcr, REG_OCPSTAT, val);
} }
int rts5260_get_ocpstat2(struct rtsx_pcr *pcr, u8 *val) static int rts5260_get_ocpstat2(struct rtsx_pcr *pcr, u8 *val)
{ {
return rtsx_pci_read_register(pcr, REG_DV3318_OCPSTAT, val); return rtsx_pci_read_register(pcr, REG_DV3318_OCPSTAT, val);
} }
void rts5260_clear_ocpstat(struct rtsx_pcr *pcr) static void rts5260_clear_ocpstat(struct rtsx_pcr *pcr)
{ {
u8 mask = 0; u8 mask = 0;
u8 val = 0; u8 val = 0;
@ -418,7 +418,7 @@ void rts5260_clear_ocpstat(struct rtsx_pcr *pcr)
DV3318_OCP_INT_CLR | DV3318_OCP_CLR, 0); DV3318_OCP_INT_CLR | DV3318_OCP_CLR, 0);
} }
void rts5260_process_ocp(struct rtsx_pcr *pcr) static void rts5260_process_ocp(struct rtsx_pcr *pcr)
{ {
if (!pcr->option.ocp_en) if (!pcr->option.ocp_en)
return; return;
@ -449,7 +449,7 @@ void rts5260_process_ocp(struct rtsx_pcr *pcr)
} }
} }
int rts5260_init_hw(struct rtsx_pcr *pcr) static int rts5260_init_hw(struct rtsx_pcr *pcr)
{ {
int err; int err;
@ -620,7 +620,7 @@ static int rts5260_extra_init_hw(struct rtsx_pcr *pcr)
return 0; return 0;
} }
void rts5260_set_aspm(struct rtsx_pcr *pcr, bool enable) static void rts5260_set_aspm(struct rtsx_pcr *pcr, bool enable)
{ {
struct rtsx_cr_option *option = &pcr->option; struct rtsx_cr_option *option = &pcr->option;
u8 val = 0; u8 val = 0;