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>
This commit is contained in:

committed by
Kalle Valo

parent
4bc606af9f
commit
6b81745e36
@@ -325,8 +325,8 @@ static const struct ieee80211_ops rt2800pci_mac80211_ops = {
|
||||
};
|
||||
|
||||
static const struct rt2800_ops rt2800pci_rt2800_ops = {
|
||||
.register_read = rt2x00mmio_register_read,
|
||||
.register_read_lock = rt2x00mmio_register_read, /* same for PCI */
|
||||
.register_read = _rt2x00mmio_register_read,
|
||||
.register_read_lock = _rt2x00mmio_register_read, /* same for PCI */
|
||||
.register_write = rt2x00mmio_register_write,
|
||||
.register_write_lock = rt2x00mmio_register_write, /* same for PCI */
|
||||
.register_multiread = rt2x00mmio_register_multiread,
|
||||
|
Reference in New Issue
Block a user