Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cb9e06b authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

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: default avatarFelix Fietkau <nbd@openwrt.org>
Tested-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7f94f05b
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -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;
+6 −0
Original line number Diff line number Diff line
@@ -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
 */
+8 −0
Original line number Diff line number Diff line
@@ -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;