]> git.baikalelectronics.ru Git - kernel.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)
commitac199b54a6df57b9a48e3df50745951c46e56281
tree07de5a7693a1b76fbd1f213e2a472ac346b82182
parentef20e4fa8788afe2b71cc33c22d69f8bc4529b4b
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