mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 18:12:25 -04:00
staging: r8188eu: remove rtw_freq2ch()
Function rtw_freq2ch() is not used, remove it. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210922200420.9693-18-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
548b78fe3b
commit
6d999c4740
@@ -53,20 +53,3 @@ u32 rtw_ch2freq(u32 channel)
|
||||
|
||||
return freq;
|
||||
}
|
||||
|
||||
u32 rtw_freq2ch(u32 freq)
|
||||
{
|
||||
u8 i;
|
||||
u32 ch = 0;
|
||||
|
||||
for (i = 0; i < ch_freq_map_num; i++) {
|
||||
if (freq == ch_freq_map[i].frequency) {
|
||||
ch = ch_freq_map[i].channel;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i == ch_freq_map_num)
|
||||
ch = 1;
|
||||
|
||||
return ch;
|
||||
}
|
||||
|
||||
@@ -121,6 +121,5 @@ enum rt_rf_type_def {
|
||||
};
|
||||
|
||||
u32 rtw_ch2freq(u32 ch);
|
||||
u32 rtw_freq2ch(u32 freq);
|
||||
|
||||
#endif /* _RTL8711_RF_H_ */
|
||||
|
||||
Reference in New Issue
Block a user