diff options
author | Lilach Edelstein <lilach.edelstein@intel.com> | 2013-01-13 06:31:10 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-02-01 05:27:22 -0500 |
commit | e139dc4aebf52a9c88552963b9794fd1dff036f1 (patch) | |
tree | 4ade4541db26cf923a911efb551ded4e5ecb8748 /drivers/net/wireless/iwlwifi/iwl-io.h | |
parent | 6690c01d168ecc620139dbd9df8affc2ac8e0683 (diff) |
iwlwifi: add iwl_set_bits_mask to transport API
Express iwl_set_bit() and iwl_clear_bit() through iwl_set_bits_mask()
and add the latter to the transport's API in order to allow different
implementation for different transport types in the future.
Signed-off-by: Lilach Edelstein <lilach.edelstein@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-io.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-io.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-io.h b/drivers/net/wireless/iwlwifi/iwl-io.h index 5d0ce434c908..fd9f5b97fff3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-io.h +++ b/drivers/net/wireless/iwlwifi/iwl-io.h | |||
@@ -51,12 +51,15 @@ static inline u32 iwl_read32(struct iwl_trans *trans, u32 ofs) | |||
51 | return val; | 51 | return val; |
52 | } | 52 | } |
53 | 53 | ||
54 | void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask); | 54 | static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) |
55 | void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask); | 55 | { |
56 | void __iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask); | 56 | iwl_trans_set_bits_mask(trans, reg, mask, mask); |
57 | void __iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask); | 57 | } |
58 | 58 | ||
59 | void iwl_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value); | 59 | static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) |
60 | { | ||
61 | iwl_trans_set_bits_mask(trans, reg, mask, 0); | ||
62 | } | ||
60 | 63 | ||
61 | int iwl_poll_bit(struct iwl_trans *trans, u32 addr, | 64 | int iwl_poll_bit(struct iwl_trans *trans, u32 addr, |
62 | u32 bits, u32 mask, int timeout); | 65 | u32 bits, u32 mask, int timeout); |