diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2012-02-06 23:45:06 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-08 21:26:27 +0100 |
commit | 1ebbc48520a0853cd4d812d8342f9886b2b07b92 (patch) | |
tree | b6ab8a4688581394a3bb08ab92d79215a21719df /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | orinoco: Remove old mailing lists from MAINTAINERS (diff) | |
download | linux-1ebbc48520a0853cd4d812d8342f9886b2b07b92.tar.xz linux-1ebbc48520a0853cd4d812d8342f9886b2b07b92.zip |
rt2x00: Introduce concept of driver data in struct rt2x00_dev.
We are getting more and more fields in struct rt2x00_dev that are
specific to one or two of the low-level drivers. Instead of putting
these fields inside the main structure and thus clobbering all low-level
drivers with these fields, introduce the concept of driver data inside
struct rt2x00_dev, whose size is indicated by the low-level driver and
which can be populated by the low-level driver.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-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, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index b03b22c47b18..b4260bfb6cb4 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h @@ -647,6 +647,7 @@ struct rt2x00lib_ops { */ struct rt2x00_ops { const char *name; + const unsigned int drv_data_size; const unsigned int max_sta_intf; const unsigned int max_ap_intf; const unsigned int eeprom_size; @@ -742,6 +743,11 @@ struct rt2x00_dev { const struct rt2x00_ops *ops; /* + * Driver data. + */ + void *drv_data; + + /* * IEEE80211 control structure. */ struct ieee80211_hw *hw; |