Skip to content

Commit

Permalink
rtl818x: move rtl8180 and rtl8187 to separate subdirectories
Browse files Browse the repository at this point in the history
These drivers share one header file, but nothing else.  Worse, both
drivers use the rtl8225 part with different register settings.  The
results has been some ugly naming -- let's simplify that.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
  • Loading branch information
John W. Linville committed Dec 22, 2010
1 parent 3d986b2 commit 3cfeb0c
Show file tree
Hide file tree
Showing 22 changed files with 29 additions and 24 deletions.
4 changes: 2 additions & 2 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -5032,7 +5032,7 @@ L: linux-wireless@vger.kernel.org
W: http://linuxwireless.org/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git
S: Maintained
F: drivers/net/wireless/rtl818x/rtl8180*
F: drivers/net/wireless/rtl818x/rtl8180/

RTL8187 WIRELESS DRIVER
M: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Expand All @@ -5042,7 +5042,7 @@ L: linux-wireless@vger.kernel.org
W: http://linuxwireless.org/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git
S: Maintained
F: drivers/net/wireless/rtl818x/rtl8187*
F: drivers/net/wireless/rtl818x/rtl8187/

RTL8192CE WIRELESS DRIVER
M: Larry Finger <Larry.Finger@lwfinger.net>
Expand Down
9 changes: 2 additions & 7 deletions drivers/net/wireless/rtl818x/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
rtl8180-objs := rtl8180_dev.o rtl8180_rtl8225.o rtl8180_sa2400.o rtl8180_max2820.o rtl8180_grf5101.o
rtl8187-objs := rtl8187_dev.o rtl8187_rtl8225.o rtl8187_leds.o rtl8187_rfkill.o

obj-$(CONFIG_RTL8180) += rtl8180.o
obj-$(CONFIG_RTL8187) += rtl8187.o


obj-$(CONFIG_RTL8180) += rtl8180/
obj-$(CONFIG_RTL8187) += rtl8187/
5 changes: 5 additions & 0 deletions drivers/net/wireless/rtl818x/rtl8180/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rtl8180-objs := dev.o rtl8225.o sa2400.o max2820.o grf5101.o

obj-$(CONFIG_RTL8180) += rtl8180.o

ccflags-y += -Idrivers/net/wireless/rtl818x
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
#include <net/mac80211.h>

#include "rtl8180.h"
#include "rtl8180_rtl8225.h"
#include "rtl8180_sa2400.h"
#include "rtl8180_max2820.h"
#include "rtl8180_grf5101.h"
#include "rtl8225.h"
#include "sa2400.h"
#include "max2820.h"
#include "grf5101.h"

MODULE_AUTHOR("Michael Wu <flamingice@sourmilk.net>");
MODULE_AUTHOR("Andrea Merello <andreamrl@tiscali.it>");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <net/mac80211.h>

#include "rtl8180.h"
#include "rtl8180_grf5101.h"
#include "grf5101.h"

static const int grf5101_encode[] = {
0x0, 0x8, 0x4, 0xC,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <net/mac80211.h>

#include "rtl8180.h"
#include "rtl8180_max2820.h"
#include "max2820.h"

static const u32 max2820_chan[] = {
12, /* CH 1 */
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <net/mac80211.h>

#include "rtl8180.h"
#include "rtl8180_rtl8225.h"
#include "rtl8225.h"

static void rtl8225_write(struct ieee80211_hw *dev, u8 addr, u16 data)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <net/mac80211.h>

#include "rtl8180.h"
#include "rtl8180_sa2400.h"
#include "sa2400.h"

static const u32 sa2400_chan[] = {
0x00096c, /* ch1 */
Expand Down
5 changes: 5 additions & 0 deletions drivers/net/wireless/rtl818x/rtl8187/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o

obj-$(CONFIG_RTL8187) += rtl8187.o

ccflags-y += -Idrivers/net/wireless/rtl818x
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
#include <net/mac80211.h>

#include "rtl8187.h"
#include "rtl8187_rtl8225.h"
#include "rtl8225.h"
#ifdef CONFIG_RTL8187_LEDS
#include "rtl8187_leds.h"
#include "leds.h"
#endif
#include "rtl8187_rfkill.h"
#include "rfkill.h"

MODULE_AUTHOR("Michael Wu <flamingice@sourmilk.net>");
MODULE_AUTHOR("Andrea Merello <andreamrl@tiscali.it>");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/eeprom_93cx6.h>

#include "rtl8187.h"
#include "rtl8187_leds.h"
#include "leds.h"

static void led_turn_on(struct work_struct *work)
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <net/mac80211.h>

#include "rtl8187.h"
#include "rtl8187_rfkill.h"
#include "rfkill.h"

static bool rtl8187_is_radio_enabled(struct rtl8187_priv *priv)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define RTL8187_H

#include "rtl818x.h"
#include "rtl8187_leds.h"
#include "leds.h"

#define RTL8187_EEPROM_TXPWR_BASE 0x05
#define RTL8187_EEPROM_MAC_ADDR 0x07
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <net/mac80211.h>

#include "rtl8187.h"
#include "rtl8187_rtl8225.h"
#include "rtl8225.h"

static void rtl8225_write_bitbang(struct ieee80211_hw *dev, u8 addr, u16 data)
{
Expand Down

0 comments on commit 3cfeb0c

Please sign in to comment.