Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: kpc2000: Use BIT macro instead of bit masking

Replace bit masking by the BIT macro. This resolves the checkpatch issue
"CHECK: Prefer using the BIT macro"

Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
Link: https://lore.kernel.org/r/2269298ae71605b47fa43a2ebaee23d0ad4ed5a5.1603295576.git.mh12gx2825@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Deepak R Varma and committed by
Greg Kroah-Hartman
e0071d31 faf9ca25

+7 -7
+7 -7
drivers/staging/kpc2000/kpc2000/dma_common_defs.h
··· 8 8 #define KPC_DMA_ENGINE_SIZE 0x0100 9 9 #define ENGINE_CAP_PRESENT_MASK 0x1 10 10 11 - #define KPC_DMA_CARD_IRQ_ENABLE (1 << 0) 12 - #define KPC_DMA_CARD_IRQ_ACTIVE (1 << 1) 13 - #define KPC_DMA_CARD_IRQ_PENDING (1 << 2) 14 - #define KPC_DMA_CARD_IRQ_MSI (1 << 3) 15 - #define KPC_DMA_CARD_USER_INTERRUPT_MODE (1 << 4) 16 - #define KPC_DMA_CARD_USER_INTERRUPT_ACTIVE (1 << 5) 17 - #define KPC_DMA_CARD_IRQ_MSIX_MODE (1 << 6) 11 + #define KPC_DMA_CARD_IRQ_ENABLE BIT(0) 12 + #define KPC_DMA_CARD_IRQ_ACTIVE BIT(1) 13 + #define KPC_DMA_CARD_IRQ_PENDING BIT(2) 14 + #define KPC_DMA_CARD_IRQ_MSI BIT(3) 15 + #define KPC_DMA_CARD_USER_INTERRUPT_MODE BIT(4) 16 + #define KPC_DMA_CARD_USER_INTERRUPT_ACTIVE BIT(5) 17 + #define KPC_DMA_CARD_IRQ_MSIX_MODE BIT(6) 18 18 #define KPC_DMA_CARD_MAX_PAYLOAD_SIZE_MASK 0x0700 19 19 #define KPC_DMA_CARD_MAX_READ_REQUEST_SIZE_MASK 0x7000 20 20 #define KPC_DMA_CARD_S2C_INTERRUPT_STATUS_MASK 0x00FF0000