mirror of https://gitee.com/openkylin/linux.git
staging: kpc2000: re-indent code for better readability
Re-indent code as per the coding style guidelines. The changes improve code readability. Issue reported by checkpatch script. Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com> Link: https://lore.kernel.org/r/29cf604e69435c1f0ef46397d0d8a1b62f32fa9b.1603295576.git.mh12gx2825@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae94bd5374
commit
faf9ca25f9
|
@ -124,6 +124,7 @@ static ssize_t cpld_reconfigure(struct device *dev,
|
|||
writeq(wr_val, pcard->sysinfo_regs_base + REG_CPLD_CONFIG);
|
||||
return count;
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(cpld_reconfigure, 0220, NULL, cpld_reconfigure);
|
||||
|
||||
static ssize_t irq_mask_reg_show(struct device *dev,
|
||||
|
@ -367,7 +368,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
|
|||
dma_bar_phys_len = pci_resource_len(pcard->pdev, DMA_BAR);
|
||||
|
||||
pcard->dma_bar_base = ioremap(dma_bar_phys_addr,
|
||||
dma_bar_phys_len);
|
||||
dma_bar_phys_len);
|
||||
if (!pcard->dma_bar_base) {
|
||||
dev_err(&pcard->pdev->dev,
|
||||
"probe: DMA_BAR could not remap memory to virtual space\n");
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
#define KPC_DMA_S2C_BASE_OFFSET 0x0000
|
||||
#define KPC_DMA_C2S_BASE_OFFSET 0x2000
|
||||
#define KPC_DMA_ENGINE_SIZE 0x0100
|
||||
#define ENGINE_CAP_PRESENT_MASK 0x1
|
||||
|
||||
#define ENGINE_CAP_PRESENT_MASK 0x1
|
||||
|
||||
#define KPC_DMA_CARD_IRQ_ENABLE (1 << 0)
|
||||
#define KPC_DMA_CARD_IRQ_ACTIVE (1 << 1)
|
||||
|
|
Loading…
Reference in New Issue