From: Jiri Slaby Date: Mon, 25 Feb 2013 14:36:48 +0000 (+0100) Subject: ath5k: cleanup channel to eprom_mode function X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~390^2^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=188741731ce1148c0f8ab63ff41c81ce56ac1e74;p=pandora-kernel.git 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 Acked-by: Nick Kossifidis Signed-off-by: John W. Linville --- Reading git-diff-tree failed