ath: unshare struct ath_bus_ops between ath5k and ath9k
authorFelix Fietkau <nbd@openwrt.org>
Wed, 13 Apr 2011 19:56:43 +0000 (21:56 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 14 Apr 2011 19:35:08 +0000 (15:35 -0400)
This struct is not used in any common code, and moving it out of
the ath header makes it easier to add more driver specific ops.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath9k/hw.h

index 6d7105b7e8f1686f48c5fec61e3c7edce635dc02..7cf4317a2a84b35dc8c19c277746aec8345220e1 100644 (file)
@@ -123,14 +123,7 @@ struct ath_ops {
 };
 
 struct ath_common;
-
-struct ath_bus_ops {
-       enum ath_bus_type ath_bus_type;
-       void (*read_cachesize)(struct ath_common *common, int *csz);
-       bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data);
-       void (*bt_coex_prep)(struct ath_common *common);
-       void (*extn_synch_en)(struct ath_common *common);
-};
+struct ath_bus_ops;
 
 struct ath_common {
        void *ah;
index e303db7ee6f667c77f7d148b872a287cb575bc85..266e548acf7858c02a8c55aef2c0c720fde7edd4 100644 (file)
@@ -1155,6 +1155,12 @@ struct ath5k_hw {
                struct ath5k_rx_status *);
 };
 
+struct ath_bus_ops {
+       enum ath_bus_type ath_bus_type;
+       void (*read_cachesize)(struct ath_common *common, int *csz);
+       bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data);
+};
+
 /*
  * Prototypes
  */
index a778b66f44380726ddb88e40bb45f97176f3be45..073bc9e1c792404c0de3d2228cb4be43c885ba24 100644 (file)
@@ -846,6 +846,14 @@ struct ath_hw {
        u32 ent_mode;
 };
 
+struct ath_bus_ops {
+       enum ath_bus_type ath_bus_type;
+       void (*read_cachesize)(struct ath_common *common, int *csz);
+       bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data);
+       void (*bt_coex_prep)(struct ath_common *common);
+       void (*extn_synch_en)(struct ath_common *common);
+};
+
 static inline struct ath_common *ath9k_hw_common(struct ath_hw *ah)
 {
        return &ah->common;
This page took 0.060325 seconds and 5 git commands to generate.