]> git.karo-electronics.de Git - linux-beck.git/commit
ath9k_hw: clean up EEPROM endian handling on AR9003
authorFelix Fietkau <nbd@openwrt.org>
Tue, 11 May 2010 15:23:03 +0000 (17:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 May 2010 20:39:07 +0000 (16:39 -0400)
commitffdc4cbe5b17c83af779f45de8536c6ece297e42
tree07de5a7693a1b76fbd1f213e2a472ac346b82182
parent9bff0bc4012c7f079b297eb45b47780e3713f367
ath9k_hw: clean up EEPROM endian handling on AR9003

Remove the double swapping of the descriptor data structure, instead
keep it little-endian (native format of the eeprom data), and byteswap
on access.
This allows sparse to verify endian access to the eeprom struct.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/ar9003_eeprom.h