• Arnd Bergmann's avatar
    rt2x00: convert rt2x00mmio_register_read return type · 3954b4e3
    Arnd Bergmann authored
    This is a semi-automated conversion to change rt2x00mmio_register_read
    to return the register contents instead of passing them by value,
    resulting in much better object code. The majority of the patch
    was done using:
    
    sed -i 's:\(rt2x00mmio_register_read(.*, .*\), &\(.*\));:\2 = \1);:' \
        -i 's:_rt2x00mmio_register_read:rt2x00mmio_register_read:' \
    	drivers/net/wireless/ralink/rt2x00/*.c
    
    The function itself was modified manually along with the one remaining
    caller that was not covered automatically.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    3954b4e3
rt2800pci.c 13.5 KB