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@xxxxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html