diff options
author | Anisse Astier <anisse@astier.eu> | 2012-04-19 09:53:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-08 21:53:46 -0400 |
commit | f2bd7f16e5ae50a26028b4244f7b9c8bba0c48d2 (patch) | |
tree | 3682f88cf73a5dcd7612e4cd679a61b76ccac161 /drivers/net/wireless/rt2x00/rt2800lib.c | |
parent | f2efd20facac2de96d33210a982820db960d25d1 (diff) |
rt2x00: Add debugfs access for rfcsr register
RFCSR is only used in rt2800. For other chipsets, the debug struct
for rfcsr should be zeroed, which isn't be an issue, since the code
can now cope with that.
Signed-off-by: Anisse Astier <anisse@astier.eu>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800lib.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 1cd16b41602..dfc90d34be6 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -836,6 +836,13 @@ const struct rt2x00debug rt2800_rt2x00debug = { | |||
836 | .word_size = sizeof(u32), | 836 | .word_size = sizeof(u32), |
837 | .word_count = RF_SIZE / sizeof(u32), | 837 | .word_count = RF_SIZE / sizeof(u32), |
838 | }, | 838 | }, |
839 | .rfcsr = { | ||
840 | .read = rt2800_rfcsr_read, | ||
841 | .write = rt2800_rfcsr_write, | ||
842 | .word_base = RFCSR_BASE, | ||
843 | .word_size = sizeof(u8), | ||
844 | .word_count = RFCSR_SIZE / sizeof(u8), | ||
845 | }, | ||
839 | }; | 846 | }; |
840 | EXPORT_SYMBOL_GPL(rt2800_rt2x00debug); | 847 | EXPORT_SYMBOL_GPL(rt2800_rt2x00debug); |
841 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ | 848 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ |