iwlwifi: add iwl_set_bits_mask
authorJohannes Berg <johannes.berg@intel.com>
Tue, 29 May 2012 12:47:30 +0000 (14:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Jun 2012 11:21:52 +0000 (13:21 +0200)
commit2baa2e57a9add3f6e5add31f28404ca7b8efecb4
tree7521e3731a1fc3fe17219a3242f0a09d48c2fe38
parent59c647b6266506cbbceadfabfd01168148f026c5
iwlwifi: add iwl_set_bits_mask

In a few cases we need to set a value in
a certain mask inside a register, add the
function iwl_set_bits_mask() to make such
code easy.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-io.c
drivers/net/wireless/iwlwifi/iwl-io.h