Commit d904eac9 authored by Fabio Aiuto's avatar Fabio Aiuto Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: put parentheses on macros with complex values in include/rtw_pwrctrl.h



fix the following checkpatch warnings:

ERROR: Macros with complex values should be enclosed in parentheses
92: FILE: drivers/staging/rtl8723bs/include/rtw_pwrctrl.h:92:
+#define LPS_DELAY_TIME	1*HZ /*  1 sec */
--
ERROR: Macros with complex values should be enclosed in parentheses
244: FILE: drivers/staging/rtl8723bs/include/rtw_pwrctrl.h:244:
+#define rtw_ips_mode_req(pwrctl, ips_mode) \

Signed-off-by: default avatarFabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/b3b7cf5ae7b0c1c07a629b618fd86a7b89331b33.1616854134.git.fabioaiuto83@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d88c117c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -89,7 +89,7 @@ struct reportpwrstate_parm {
	unsigned short rsvd;
	unsigned short rsvd;
};
};


#define LPS_DELAY_TIME	1*HZ /*  1 sec */
#define LPS_DELAY_TIME	(1*HZ) /*  1 sec */


#define EXE_PWR_NONE	0x01
#define EXE_PWR_NONE	0x01
#define EXE_PWR_IPS		0x02
#define EXE_PWR_IPS		0x02
@@ -238,7 +238,7 @@ struct pwrctrl_priv {
};
};


#define rtw_ips_mode_req(pwrctl, ips_mode) \
#define rtw_ips_mode_req(pwrctl, ips_mode) \
	(pwrctl)->ips_mode_req = (ips_mode)
	((pwrctl)->ips_mode_req = (ips_mode))


#define RTW_PWR_STATE_CHK_INTERVAL 2000
#define RTW_PWR_STATE_CHK_INTERVAL 2000