6 Oct 18:46
[PATCH] iwlwifi: get rid of IWL_{GET,SET}_BITS crap
From: Johannes Berg <johannes@...>
Subject: [PATCH] iwlwifi: get rid of IWL_{GET,SET}_BITS crap
Newsgroups: gmane.linux.kernel.wireless.general
Date: 2008-10-06 16:50:02 GMT
Subject: [PATCH] iwlwifi: get rid of IWL_{GET,SET}_BITS crap
Newsgroups: gmane.linux.kernel.wireless.general
Date: 2008-10-06 16:50:02 GMT
This makes the code surrounding the last few things using IWL_SET_BITS16 actually readable and removes the macros so nobody will ever consider using them again. Signed-off-by: Johannes Berg <johannes@...> --- Tested on 5000 hw. drivers/net/wireless/iwlwifi/iwl-4965-hw.h | 82 ++++++++--------------- drivers/net/wireless/iwlwifi/iwl-4965.c | 15 ++-- drivers/net/wireless/iwlwifi/iwl-5000-hw.h | 55 +++++++-------- drivers/net/wireless/iwlwifi/iwl-5000.c | 41 ++++++----- drivers/net/wireless/iwlwifi/iwl-helpers.h | 102 ----------------------------- drivers/net/wireless/iwlwifi/iwl-tx.c | 6 - 6 files changed, 90 insertions(+), 211 deletions(-) --- wireless-testing.orig/drivers/net/wireless/iwlwifi/iwl-4965-hw.h 2008-10-06 18:01:57.207234025 +0200 +++ wireless-testing/drivers/net/wireless/iwlwifi/iwl-4965-hw.h 2008-10-06 18:27:22.318362726 +0200 @@ -857,18 +857,24 @@ struct iwl_tfd_addr_desc { * A maximum of 255 (not 256!) TFDs may be on a queue waiting for Tx. */ struct iwl_tfd_frame { - __le32 val0; - /* __le32 rsvd1:24; */ - /* __le32 num_tbs:5; */ -#define IWL_num_tbs_POS 24 -#define IWL_num_tbs_LEN 5 -#define IWL_num_tbs_SYM val0(Continue reading)
Now, can we discuss the patch rather than Johannes' intemperate
word choice?
John
RSS Feed