Re: [PATCH] arm64: dts: renesas: rzg2l-smarc: use proper bool operator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/4/22 2:29 AM, Wolfram Sang wrote:

> When checking for defined macros, we want the boolean AND not the binary
> one.

   Do we need the parens though?

> Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> ---
> 
> Found while looking for examples of '#if' in dts files.
> 
>  arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi
> index aa170492dd2b..6be25a8a28db 100644
> --- a/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi
> +++ b/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi
> @@ -29,7 +29,7 @@
>  #define SW_RSPI_CAN	1
>  #endif
>  
> -#if (SW_SCIF_CAN & SW_RSPI_CAN)
> +#if (SW_SCIF_CAN && SW_RSPI_CAN)
>  #error "Can not set 1 to both SW_SCIF_CAN and SW_RSPI_CAN due to HW routing"
>  #endif
>  

MBR, Sergey



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux