]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8188eu: remove get_right_chnl_for_iqk()
authorMichael Straube <straube.linux@gmail.com>
Thu, 27 Sep 2018 12:16:40 +0000 (14:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 12:30:52 +0000 (14:30 +0200)
commit8edfeb06511bc328d2e55a4c51ffbf7e1a774676
tree95d77a0907593e3077cdcec742485d4178c119bf
parent38868a0a0a81aec4ba2209fbb5512bd23057e769
staging: rtl8188eu: remove get_right_chnl_for_iqk()

The function get_right_chnl_for_iqk() only returns non zero values for
channels > 14. According to the TODO, code valid only for 5 GHz should
be removed.

- find and remove remaining code valid only for 5 GHz. Most of the obvious
  ones have been removed, but things like channel > 14 still exist.

Remove get_right_chnl_for_iqk() and the variable chn_index that is
used to save the return value. Replace the uses of chn_index with zero.

Remove the now unused define ODM_TARGET_CHNL_NUM_2G_5G.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/phy.c
drivers/staging/rtl8188eu/include/phy.h