diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-02-13 14:55:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-15 16:14:10 -0500 |
commit | 714fa6636331d33c6045efe394f36c964a6c14ee (patch) | |
tree | dcdb5f14cd2275cec4dac094327d3b3524e201de /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | cea90e55969ff70b970d64d564076a5469331527 (diff) |
rt2x00: Reorganize RT chipset setting for PCI/SOC devices.
Don't set the RT chipset for a device from within the generic PCI/SOC code,
but rather from the individual drivers, so that individual drivers have
more control over what RT chipset is set.
Preparation for chip handling updates for rt2800 devices.
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 | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index d741367304bb..1fed90acd198 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -923,22 +923,7 @@ static inline void rt2x00_set_chip(struct rt2x00_dev *rt2x00dev, | |||
923 | rt2x00dev->chip.rt = rt; | 923 | rt2x00dev->chip.rt = rt; |
924 | rt2x00dev->chip.rf = rf; | 924 | rt2x00dev->chip.rf = rf; |
925 | rt2x00dev->chip.rev = rev; | 925 | rt2x00dev->chip.rev = rev; |
926 | } | ||
927 | |||
928 | static inline void rt2x00_set_chip_rt(struct rt2x00_dev *rt2x00dev, | ||
929 | const u16 rt) | ||
930 | { | ||
931 | rt2x00dev->chip.rt = rt; | ||
932 | } | ||
933 | 926 | ||
934 | static inline void rt2x00_set_chip_rf(struct rt2x00_dev *rt2x00dev, | ||
935 | const u16 rf, const u32 rev) | ||
936 | { | ||
937 | rt2x00_set_chip(rt2x00dev, rt2x00dev->chip.rt, rf, rev); | ||
938 | } | ||
939 | |||
940 | static inline void rt2x00_print_chip(struct rt2x00_dev *rt2x00dev) | ||
941 | { | ||
942 | INFO(rt2x00dev, | 927 | INFO(rt2x00dev, |
943 | "Chipset detected - rt: %04x, rf: %04x, rev: %08x.\n", | 928 | "Chipset detected - rt: %04x, rf: %04x, rev: %08x.\n", |
944 | rt2x00dev->chip.rt, rt2x00dev->chip.rf, rt2x00dev->chip.rev); | 929 | rt2x00dev->chip.rt, rt2x00dev->chip.rf, rt2x00dev->chip.rev); |