]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: refactor iwl_setup_rxon_timing
authorJohannes Berg <johannes.berg@intel.com>
Thu, 29 Jul 2010 14:07:51 +0000 (07:07 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Aug 2010 20:32:01 +0000 (16:32 -0400)
commit3c3ae7993323ff6f7794d111b51f2620c8920de5
treeb39102616526af0856996ae38dad9976dfd4fc53
parent732dfd93ece1dd710e47a092f2d93c18eb842826
iwlwifi: refactor iwl_setup_rxon_timing

All callers of iwl_setup_rxon_timing() also send
the command right away, so rename the function
to iwl_send_rxon_timing() and move the sending
into it. Also, some callers clear the data, this
can be done always and thus moved in as well.
Finally, there's no reason for the function to
acquire the spinlock, but it should be called
with the mutex held, so assert that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl3945-base.c