ath5k: cleanup channel to eprom_mode function
authorJiri Slaby <jslaby@suse.cz>
Mon, 25 Feb 2013 14:36:48 +0000 (15:36 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Mar 2013 21:24:27 +0000 (16:24 -0500)
commit188741731ce1148c0f8ab63ff41c81ce56ac1e74
treef57abfcbcc21ba18e04f1766ced0f33efd7b8379
parentcd3d03d596a4d8b31fcec40120472ea518d8232e
ath5k: cleanup channel to eprom_mode function

Stop returning negative values from ath5k_eeprom_mode_from_channel.
Yell loudly about that case in that function instead and return the
default/zero/mode A. This cleans up the callers, but needs to pass ah
down to ath5k_eeprom_mode_from_channel for ATH5K_WARN. For that
purpose we also need the declaration to be moved to ath5k.h.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/eeprom.c
drivers/net/wireless/ath/ath5k/eeprom.h
drivers/net/wireless/ath/ath5k/phy.c
drivers/net/wireless/ath/ath5k/reset.c