aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/eeprom.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2013-02-25 15:36:48 +0100
committerJohn W. Linville <linville@tuxdriver.com>2013-03-06 16:24:27 -0500
commit188741731ce1148c0f8ab63ff41c81ce56ac1e74 (patch)
treef57abfcbcc21ba18e04f1766ced0f33efd7b8379 /drivers/net/wireless/ath/ath5k/eeprom.h
parentrndis_wlan: Remove redundant NULL check before kfree (diff)
downloadlinux-dev-188741731ce1148c0f8ab63ff41c81ce56ac1e74.tar.xz
linux-dev-188741731ce1148c0f8ab63ff41c81ce56ac1e74.zip
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/eeprom.h')
-rw-r--r--drivers/net/wireless/ath/ath5k/eeprom.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.h b/drivers/net/wireless/ath/ath5k/eeprom.h
index 94a9bbea6874..693296ee9693 100644
--- a/drivers/net/wireless/ath/ath5k/eeprom.h
+++ b/drivers/net/wireless/ath/ath5k/eeprom.h
@@ -493,6 +493,3 @@ struct ath5k_eeprom_info {
/* Antenna raw switch tables */
u32 ee_antenna[AR5K_EEPROM_N_MODES][AR5K_ANT_MAX];
};
-
-int
-ath5k_eeprom_mode_from_channel(struct ieee80211_channel *channel);