diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-08-02 04:51:22 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-08-06 04:34:33 -0400 |
commit | 5fdda0476c28ff2097ae37f43f40557b91eb0160 (patch) | |
tree | e5591940426ed0347b9fc5f3a73eb3b1ddd165d5 /drivers/net/wireless/iwlwifi/iwl-trans.h | |
parent | 1092b9bc0cdc1d8d456d2b9b1f857b06ef5523da (diff) |
iwlwifi: remove transport suspend/resume indirection
There's no reason for the transport to call itself through
indirect function pointers, inline the (little) code there
is and remove the indirection completely.
Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h index 523dc7ce294b..dd57a36ecb10 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans.h +++ b/drivers/net/wireless/iwlwifi/iwl-trans.h | |||
@@ -396,8 +396,6 @@ struct iwl_trans; | |||
396 | * May sleep | 396 | * May sleep |
397 | * @dbgfs_register: add the dbgfs files under this directory. Files will be | 397 | * @dbgfs_register: add the dbgfs files under this directory. Files will be |
398 | * automatically deleted. | 398 | * automatically deleted. |
399 | * @suspend: stop the device unless WoWLAN is configured | ||
400 | * @resume: resume activity of the device | ||
401 | * @write8: write a u8 to a register at offset ofs from the BAR | 399 | * @write8: write a u8 to a register at offset ofs from the BAR |
402 | * @write32: write a u32 to a register at offset ofs from the BAR | 400 | * @write32: write a u32 to a register at offset ofs from the BAR |
403 | * @read32: read a u32 register at offset ofs from the BAR | 401 | * @read32: read a u32 register at offset ofs from the BAR |
@@ -443,10 +441,7 @@ struct iwl_trans_ops { | |||
443 | 441 | ||
444 | int (*dbgfs_register)(struct iwl_trans *trans, struct dentry* dir); | 442 | int (*dbgfs_register)(struct iwl_trans *trans, struct dentry* dir); |
445 | int (*wait_tx_queue_empty)(struct iwl_trans *trans); | 443 | int (*wait_tx_queue_empty)(struct iwl_trans *trans); |
446 | #ifdef CONFIG_PM_SLEEP | 444 | |
447 | int (*suspend)(struct iwl_trans *trans); | ||
448 | int (*resume)(struct iwl_trans *trans); | ||
449 | #endif | ||
450 | void (*write8)(struct iwl_trans *trans, u32 ofs, u8 val); | 445 | void (*write8)(struct iwl_trans *trans, u32 ofs, u8 val); |
451 | void (*write32)(struct iwl_trans *trans, u32 ofs, u32 val); | 446 | void (*write32)(struct iwl_trans *trans, u32 ofs, u32 val); |
452 | u32 (*read32)(struct iwl_trans *trans, u32 ofs); | 447 | u32 (*read32)(struct iwl_trans *trans, u32 ofs); |
@@ -700,18 +695,6 @@ static inline int iwl_trans_dbgfs_register(struct iwl_trans *trans, | |||
700 | return trans->ops->dbgfs_register(trans, dir); | 695 | return trans->ops->dbgfs_register(trans, dir); |
701 | } | 696 | } |
702 | 697 | ||
703 | #ifdef CONFIG_PM_SLEEP | ||
704 | static inline int iwl_trans_suspend(struct iwl_trans *trans) | ||
705 | { | ||
706 | return trans->ops->suspend(trans); | ||
707 | } | ||
708 | |||
709 | static inline int iwl_trans_resume(struct iwl_trans *trans) | ||
710 | { | ||
711 | return trans->ops->resume(trans); | ||
712 | } | ||
713 | #endif | ||
714 | |||
715 | static inline void iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val) | 698 | static inline void iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val) |
716 | { | 699 | { |
717 | trans->ops->write8(trans, ofs, val); | 700 | trans->ops->write8(trans, ofs, val); |