Skip to content

Commit c0cf30b

Browse files
committed
wifi: iwlwifi: pcie: make iwl_pcie_d3_complete_suspend() static
The function is only used in the same file, so it can trivially be static. Do that. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20241231135726.c09d2251824c.Ibcfbb4bbe27a0767a1da4a5897b2b0f70193dc3d@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent d843452 commit c0cf30b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

drivers/net/wireless/intel/iwlwifi/pcie/internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,6 @@ void iwl_trans_pcie_gen2_fw_alive(struct iwl_trans *trans);
11371137
int iwl_trans_pcie_gen2_send_hcmd(struct iwl_trans *trans,
11381138
struct iwl_host_cmd *cmd);
11391139
void iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans);
1140-
void iwl_pcie_d3_complete_suspend(struct iwl_trans *trans,
1141-
bool test, bool reset);
11421140
int iwl_pcie_gen2_enqueue_hcmd(struct iwl_trans *trans,
11431141
struct iwl_host_cmd *cmd);
11441142
int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans,

drivers/net/wireless/intel/iwlwifi/pcie/trans.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,8 @@ void iwl_trans_pcie_rf_kill(struct iwl_trans *trans, bool state, bool from_irq)
14891489
_iwl_trans_pcie_stop_device(trans, from_irq);
14901490
}
14911491

1492-
void iwl_pcie_d3_complete_suspend(struct iwl_trans *trans,
1493-
bool test, bool reset)
1492+
static void iwl_pcie_d3_complete_suspend(struct iwl_trans *trans,
1493+
bool test, bool reset)
14941494
{
14951495
iwl_disable_interrupts(trans);
14961496

0 commit comments

Comments
 (0)