Re: [PATCH 2/4] Staging: vme: Use BIT macro for bit field definitions.

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

 



On Wed, Nov 02, 2016 at 01:27:09AM +0300, Anton Leshchenko wrote:
>  #define PIO2_CNTR_MODE0			0
> -#define PIO2_CNTR_MODE1			(1 << 1)
> -#define PIO2_CNTR_MODE2			(2 << 1)
> -#define PIO2_CNTR_MODE3			(3 << 1)
> -#define PIO2_CNTR_MODE4			(4 << 1)
> -#define PIO2_CNTR_MODE5			(5 << 1)
> +#define PIO2_CNTR_MODE1			BIT(1)
> +#define PIO2_CNTR_MODE2			BIT(2)
> +#define PIO2_CNTR_MODE3			(BIT(1) | BIT(2))
> +#define PIO2_CNTR_MODE4			BIT(4)

This should be BIT(3)

> +#define PIO2_CNTR_MODE5			(BIT(1) | BIT(3))

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux