staging: rtl8723bs: include: Change the type of a variable
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Sun, 11 Apr 2021 11:04:57 +0000 (13:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Apr 2021 09:37:15 +0000 (11:37 +0200)
Change the type of fw_current_in_ps_mode from u8 to bool, because
it is used everywhere as a bool and, accordingly, it should be
declared as a bool.

Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20210411110458.15955-4-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/rtw_pwrctrl.h

index 0a48f16..0767dbb 100644 (file)
@@ -203,7 +203,7 @@ struct pwrctrl_priv {
        u8 LpsIdleCount;
        u8 power_mgnt;
        u8 org_power_mgnt;
-       u8 fw_current_in_ps_mode;
+       bool fw_current_in_ps_mode;
        unsigned long   DelayLPSLastTimeStamp;
        s32             pnp_current_pwr_state;
        u8 pnp_bstop_trx;