diff options
author | Arnd Bergmann | 2017-05-17 16:46:53 +0200 |
---|---|---|
committer | Kalle Valo | 2017-05-24 15:45:32 +0200 |
commit | 6b81745e36e346e8aa936219d0311b384313bee3 (patch) | |
tree | 81caa2bf60cc39dc2f542aa6d4b026084547fb6c /drivers/net/wireless/ralink/rt2x00/rt2x00debug.h | |
parent | libertas: Remove function entry/exit debugging (diff) | |
download | kernel-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.h | 4 |
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); \ \ |