staging: vme_user: Replace the "<<" with BIT macro
Replace the "<<" operator with BIT macro, in accordance to the checkpatch.pl script and Linux kernel coding-style guidelines. Signed-off-by: Abhirup Deb <abhirupdeb@linux.vnet.ibm.com> Link: https://lore.kernel.org/r/Y8O5DN9ehby8K487@li-27defe4c-32e1-11b2-a85c-e202e9981075.ibm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3f04bd835c
commit
9ac9e59f15
|
@ -2,6 +2,8 @@
|
|||
#ifndef _VME_H_
|
||||
#define _VME_H_
|
||||
|
||||
#include <linux/bitops.h>
|
||||
|
||||
/* Resource Type */
|
||||
enum vme_resource_type {
|
||||
VME_MASTER,
|
||||
|
@ -54,20 +56,20 @@ enum vme_resource_type {
|
|||
#define VME_R_ROBIN_MODE 0x1
|
||||
#define VME_PRIORITY_MODE 0x2
|
||||
|
||||
#define VME_DMA_PATTERN (1<<0)
|
||||
#define VME_DMA_PCI (1<<1)
|
||||
#define VME_DMA_VME (1<<2)
|
||||
#define VME_DMA_PATTERN BIT(0)
|
||||
#define VME_DMA_PCI BIT(1)
|
||||
#define VME_DMA_VME BIT(2)
|
||||
|
||||
#define VME_DMA_PATTERN_BYTE (1<<0)
|
||||
#define VME_DMA_PATTERN_WORD (1<<1)
|
||||
#define VME_DMA_PATTERN_INCREMENT (1<<2)
|
||||
#define VME_DMA_PATTERN_BYTE BIT(0)
|
||||
#define VME_DMA_PATTERN_WORD BIT(1)
|
||||
#define VME_DMA_PATTERN_INCREMENT BIT(2)
|
||||
|
||||
#define VME_DMA_VME_TO_MEM (1<<0)
|
||||
#define VME_DMA_MEM_TO_VME (1<<1)
|
||||
#define VME_DMA_VME_TO_VME (1<<2)
|
||||
#define VME_DMA_MEM_TO_MEM (1<<3)
|
||||
#define VME_DMA_PATTERN_TO_VME (1<<4)
|
||||
#define VME_DMA_PATTERN_TO_MEM (1<<5)
|
||||
#define VME_DMA_VME_TO_MEM BIT(0)
|
||||
#define VME_DMA_MEM_TO_VME BIT(1)
|
||||
#define VME_DMA_VME_TO_VME BIT(2)
|
||||
#define VME_DMA_MEM_TO_MEM BIT(3)
|
||||
#define VME_DMA_PATTERN_TO_VME BIT(4)
|
||||
#define VME_DMA_PATTERN_TO_MEM BIT(5)
|
||||
|
||||
struct vme_dma_attr {
|
||||
u32 type;
|
||||
|
|
Loading…
Reference in New Issue