diff options
author | Luis R. Rodriguez <mcgrof@qca.qualcomm.com> | 2011-12-20 19:46:11 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-04 20:30:40 +0100 |
commit | a98aa7ae14529144527b64a54a9ecd828fa805a6 (patch) | |
tree | bb4b33aae04a2c2f141cfab9a4ef862a7c570b47 /fs | |
parent | ath5k: avoid sparse warnings on tracing (diff) | |
download | linux-a98aa7ae14529144527b64a54a9ecd828fa805a6.tar.xz linux-a98aa7ae14529144527b64a54a9ecd828fa805a6.zip |
ath9k_hw: fix sparse complaint on ar9003_switch_com_spdt_get()
This fixes this sparse complaint:
make C=2 CF="-D__CHECK_ENDIAN__" M=drivers/net/wireless/ath/
CHECK drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c:3544:21: warning: incorrect type in assignment (different base types)
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c:3544:21: expected restricted __le32 [usertype] val
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c:3544:21: got restricted __le16 [usertype] switchcomspdt
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c:3546:21: warning: incorrect type in assignment (different base types)
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c:3546:21: expected restricted __le32 [usertype] val
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c:3546:21: got restricted __le16 [usertype] switchcomspdt
The eep->modalHeader5G.switchcomspdt is a le16 and we return u16,
so just return le16_to_cpu().
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions