linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] rtlwifi: Cleanup the macros that read/write the RX/TX descriptors
@ 2012-01-11 23:07 Larry Finger
  2012-01-11 23:07 ` [PATCH 1/5] rtlwifi: Move RX/TX macros into common file Larry Finger
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Larry Finger @ 2012-01-11 23:07 UTC (permalink / raw)
  To: linville; +Cc: Larry Finger, linux-wireless

Each of the drivers under rtlwifi contains its own copy of the macros described in
the subject. In addition, there are macros defined for each field even if those
particular bits are never accessed. The cleanup consists of moving all such
macros to a special file, eliminate duplication, and removing all macros that
are defined but not used. These changes remove over 1200 lines of source code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---

Larry Finger (5):
  rtlwifi: Move RX/TX macros into common file
  rtl8192ce: Switch to use the combined macros file
  rtl8192cu: Convert driver to use the new macros file
  rtl8192de: Change driver to use new macros file
  rtl8192se: Convert driver to use the new macro file

 drivers/net/wireless/rtlwifi/macros.h        |  460 ++++++++++++++++++++++++
 drivers/net/wireless/rtlwifi/rtl8192ce/trx.h |  499 +-------------------------
 drivers/net/wireless/rtlwifi/rtl8192cu/mac.c |    6 +-
 drivers/net/wireless/rtlwifi/rtl8192cu/trx.c |  193 +++++-----
 drivers/net/wireless/rtlwifi/rtl8192cu/trx.h |  310 +----------------
 drivers/net/wireless/rtlwifi/rtl8192de/trx.c |    4 +-
 drivers/net/wireless/rtlwifi/rtl8192de/trx.h |  499 +-------------------------
 drivers/net/wireless/rtlwifi/rtl8192se/def.h |  406 +---------------------
 drivers/net/wireless/rtlwifi/rtl8192se/trx.c |  121 ++++---
 9 files changed, 635 insertions(+), 1863 deletions(-)
 create mode 100644 drivers/net/wireless/rtlwifi/macros.h

-- 
1.7.7


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-01-12 15:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 23:07 [PATCH 0/5] rtlwifi: Cleanup the macros that read/write the RX/TX descriptors Larry Finger
2012-01-11 23:07 ` [PATCH 1/5] rtlwifi: Move RX/TX macros into common file Larry Finger
2012-01-12  0:27   ` Joe Perches
2012-01-12  1:11     ` Larry Finger
2012-01-12  8:19       ` Francois Romieu
2012-01-12 15:43         ` Larry Finger
2012-01-11 23:07 ` [PATCH 2/5] rtl8192ce: Switch to use the combined macros file Larry Finger
2012-01-11 23:07 ` [PATCH 3/5] rtl8192cu: Convert driver to use the new " Larry Finger
2012-01-11 23:07 ` [PATCH 4/5] rtl8192de: Change driver to use " Larry Finger
2012-01-11 23:07 ` [PATCH 5/5] rtl8192se: Convert driver to use the new macro file Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).