diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2010-07-11 06:31:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-12 16:05:37 -0400 |
commit | e796643eaf0889c346e6b69c5afe777c327b1919 (patch) | |
tree | 7cdac8397bc37d7c6daa85d975e88bb828e5fde4 /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | f31c9a8c1380e20e95d06925f2e42baf61af4db7 (diff) |
rt2x00: Move driver callback functions into the ops structure
All callback functions are gathered in rt2x00dev->ops except
for the callback functions which are used in rt2800lib to
acces rt2800pci/usb.
Move the priv pointer from rt2x00dev to rt2x00dev->ops and
rename it to drv to make it obvious that it is the driver callback
structure.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 9dd0d171abf1..c21af38cc5af 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -621,6 +621,7 @@ struct rt2x00_ops { | |||
621 | const struct data_queue_desc *bcn; | 621 | const struct data_queue_desc *bcn; |
622 | const struct data_queue_desc *atim; | 622 | const struct data_queue_desc *atim; |
623 | const struct rt2x00lib_ops *lib; | 623 | const struct rt2x00lib_ops *lib; |
624 | const void *drv; | ||
624 | const struct ieee80211_ops *hw; | 625 | const struct ieee80211_ops *hw; |
625 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS | 626 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS |
626 | const struct rt2x00debug *debugfs; | 627 | const struct rt2x00debug *debugfs; |
@@ -881,11 +882,6 @@ struct rt2x00_dev { | |||
881 | * and interrupt thread routine. | 882 | * and interrupt thread routine. |
882 | */ | 883 | */ |
883 | u32 irqvalue[2]; | 884 | u32 irqvalue[2]; |
884 | |||
885 | /* | ||
886 | * Driver specific data. | ||
887 | */ | ||
888 | void *priv; | ||
889 | }; | 885 | }; |
890 | 886 | ||
891 | /* | 887 | /* |