summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/ath5k.h
diff options
context:
space:
mode:
authorFelix Fietkau2011-04-13 21:56:43 +0200
committerJohn W. Linville2011-04-14 21:35:08 +0200
commit0cb9e06b6359bfa82f46c38a0b43e72d90b84081 (patch)
tree38a9c85bf15141681f7f3d3fd743464a88a96b7e /drivers/net/wireless/ath/ath5k/ath5k.h
parentath5k: disable 5 GHz support if a 2.4 GHz radio is detected (diff)
downloadkernel-qcow2-linux-0cb9e06b6359bfa82f46c38a0b43e72d90b84081.tar.gz
kernel-qcow2-linux-0cb9e06b6359bfa82f46c38a0b43e72d90b84081.tar.xz
kernel-qcow2-linux-0cb9e06b6359bfa82f46c38a0b43e72d90b84081.zip
ath: unshare struct ath_bus_ops between ath5k and ath9k
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ath5k.h')
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index e303db7ee6f6..266e548acf78 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -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
*/