[U-Boot] [PATCH 09/11] dma: ti-edma3: Add BIT(x) macro definition

R, Vignesh vigneshr at ti.com
Sat Jul 4 14:53:37 CEST 2015



On 7/3/2015 7:27 PM, Andy Pont wrote:
> Vignesh wrote...
> 
> [snip]
> 
>> +#define BIT(x)					(1 << (x))
>> +
> 
> Is this not something that would be better in a global header file somewhere rather than it starting a trend of a per-driver, per-arch, etc. definitions?

I agree there are few per arch defintions.
How about adding it to include/linux/bitops.h as in linux kernel?

Regards
Vignesh


More information about the U-Boot mailing list