rt2x00: convert rt2800_eeprom_read return type
authorArnd Bergmann <arnd@arndb.de>
Wed, 17 May 2017 14:47:01 +0000 (16:47 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 May 2017 13:45:36 +0000 (16:45 +0300)
commit5c6a25855cbd057f361c51d98b763eef28175b0b
tree552536c3f41fb5a4d0adeb3140ae6f98a399d2d4
parent38651683aa98399f2e08e7978b8df0a707051887
rt2x00: convert rt2800_eeprom_read return type

This is a semi-automated conversion to change rt2800_eeprom_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:\(\<rt2800_eeprom_read\(_from_array\|\)\>(.*, .*\), &\(.*\));:\3 = \1);:'
drivers/net/wireless/ralink/rt2x00/rt2800lib.c

Some manual tweaking was required here to work around the line wraps.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c