[U-Boot] [PATCH 03/11] usb: dwc3: Add BIT() macro

Marek Vasut marex at denx.de
Mon Feb 23 16:04:56 CET 2015


On Monday, February 23, 2015 at 03:02:24 PM, Lukasz Majewski wrote:
> From: Inha Song <ideal.song at samsung.com>
> 
> Signed-off-by: Inha Song <ideal.song at samsung.com>

Is such confusing macro really necessary please ?

Moreover, the #define BIT(x) (1 << x) should really be #define BIT(x) (1 << (x))
(with (x) in round brackets).

Best regards,
Marek Vasut


More information about the U-Boot mailing list