summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ralink/rt2x00/rt2x00debug.h
diff options
context:
space:
mode:
authorArnd Bergmann2017-05-17 16:46:53 +0200
committerKalle Valo2017-05-24 15:45:32 +0200
commit6b81745e36e346e8aa936219d0311b384313bee3 (patch)
tree81caa2bf60cc39dc2f542aa6d4b026084547fb6c /drivers/net/wireless/ralink/rt2x00/rt2x00debug.h
parentlibertas: Remove function entry/exit debugging (diff)
downloadkernel-qcow2-linux-6b81745e36e346e8aa936219d0311b384313bee3.tar.gz
kernel-qcow2-linux-6b81745e36e346e8aa936219d0311b384313bee3.tar.xz
kernel-qcow2-linux-6b81745e36e346e8aa936219d0311b384313bee3.zip
rt2x00: change function pointers for register accessors
This prepares the driver for changing all the 'read' register accessors to return the value instead of passing it by reference. Since a lot of them are used in callbacks, this takes care of the callbacks first, adding a couple of helpers that will be removed again one at a time. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ralink/rt2x00/rt2x00debug.h')
-rw-r--r--drivers/net/wireless/ralink/rt2x00/rt2x00debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00debug.h b/drivers/net/wireless/ralink/rt2x00/rt2x00debug.h
index e65712c235bd..a357a0727a0b 100644
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00debug.h
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00debug.h
@@ -38,8 +38,8 @@ enum rt2x00debugfs_entry_flags {
#define RT2X00DEBUGFS_REGISTER_ENTRY(__name, __type) \
struct reg##__name { \
- void (*read)(struct rt2x00_dev *rt2x00dev, \
- const unsigned int word, __type *data); \
+ __type (*read)(struct rt2x00_dev *rt2x00dev, \
+ const unsigned int word); \
void (*write)(struct rt2x00_dev *rt2x00dev, \
const unsigned int word, __type data); \
\