misc: rtsx: make several functions static
Subsystems (2)
PATCH 1/1 misc: rtsx: make several functions static
From: Colin Ian King <[email protected]>
The functions rtsx_pm_power_saving, rtsx_set_l1off_sub_cfg_d0, rtsx_pm_full_on, rtsx_comm_set_ltr_latency, rtsx_pci_process_ocp and rtsx_pci_process_ocp_interrupt are local to the source and do not need to be in global scope, so make them static.
Cleans up sparse warnings:
symbol 'rtsx_pm_power_saving' was not declared. Should it be static? symbol 'rtsx_set_l1off_sub_cfg_d0' was not declared. Should it be static? symbol 'rtsx_pm_full_on' was not declared. Should it be static? symbol 'rtsx_comm_set_ltr_latency' was not declared. Should it be static? symbol 'rtsx_pci_process_ocp' was not declared. Should it be static? symbol 'rtsx_pci_process_ocp_interrupt' was not declared. Should it be static?
--- drivers/misc/cardreader/rtsx_pcr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/misc/cardreader/rtsx_pcr.c +6 -6
@@ -80,7 +80,7 @@ static inline void rtsx_pci_disable_aspm(struct rtsx_pcr *pcr) 0xFC, 0); } -int rtsx_comm_set_ltr_latency (struct rtsx_pcr *pcr,u32 latency) +static int rtsx_comm_set_ltr_latency (struct rtsx_pcr *pcr,u32 latency) {rtsx_pci_write_register (pcr,MSGTXDATA0 ,MASK_8_BIT_DEF , (u8) (latency &0xFF ));
@@ -143,7 +143,7 @@ int rtsx_set_l1off_sub(struct rtsx_pcr *pcr, u8 val)return 0 ; } -void rtsx_set_l1off_sub_cfg_d0 (struct rtsx_pcr *pcr,int active) +static void rtsx_set_l1off_sub_cfg_d0 (struct rtsx_pcr *pcr,int active) {if (pcr->ops->set_l1off_cfg_sub_d0) pcr->ops->set_l1off_cfg_sub_d0 (pcr, active);
@@ -162,7 +162,7 @@ static void rtsx_comm_pm_full_on(struct rtsx_pcr *pcr)rtsx_set_l1off_sub_cfg_d0 (pcr,1 ); } -void rtsx_pm_full_on (struct rtsx_pcr *pcr) +static void rtsx_pm_full_on (struct rtsx_pcr *pcr) {if (pcr->ops->full_on) pcr->ops->full_on (pcr);
@@ -967,13 +967,13 @@ static void rtsx_pci_card_detect(struct work_struct *work) pcr->slots[RTSX_MS_CARD].p_dev); } -void rtsx_pci_process_ocp (struct rtsx_pcr *pcr) +static void rtsx_pci_process_ocp (struct rtsx_pcr *pcr) {if (pcr->ops->process_ocp) pcr->ops->process_ocp (pcr); } -int rtsx_pci_process_ocp_interrupt (struct rtsx_pcr *pcr) +static int rtsx_pci_process_ocp_interrupt (struct rtsx_pcr *pcr) {if (pcr->option.ocp_en)rtsx_pci_process_ocp (pcr);
@@ -1094,7 +1094,7 @@ static void rtsx_comm_pm_power_saving(struct rtsx_pcr *pcr)rtsx_enable_aspm (pcr); } -void rtsx_pm_power_saving (struct rtsx_pcr *pcr) +static void rtsx_pm_power_saving (struct rtsx_pcr *pcr) {if (pcr->ops->power_saving) pcr->ops->power_saving (pcr);
Signature · 1 line
2.17.0