staging: r8188eu: remove change_rfpwrstate
authorMartin Kaiser <martin@kaiser.cx>
Mon, 6 Feb 2023 21:01:24 +0000 (22:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:41:18 +0000 (08:41 +0100)
commit0fb449c5749ce5a6238a53f69bf178405862473e
tree3df180dd6876a5a5fecf858a5a43b45dd068bb4b
parent75c68a49cb48388eb4225ee97a53bea99238c88c
staging: r8188eu: remove change_rfpwrstate

Remove the change_rfpwrstate component in struct pwrctrl_priv.

change_rfpwrstate is set to rf_off directly before each ips_enter call and
then checked in ips_enter. This makes no sense.

change_rfpwrstate might have been used to avoid conflicts between
suspend and resume operations. If a driver has to do this at all,
pwrpriv->ps_processing will do this job.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230206210124.150142-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_pwrctrl.c
drivers/staging/r8188eu/include/rtw_pwrctrl.h