staging: kpc2000: re-indent code for better readability
authorDeepak R Varma <mh12gx2825@gmail.com>
Wed, 21 Oct 2020 16:09:29 +0000 (21:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Oct 2020 05:53:10 +0000 (06:53 +0100)
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>
drivers/staging/kpc2000/kpc2000/core.c
drivers/staging/kpc2000/kpc2000/dma_common_defs.h

index 358d7b2..6462a30 100644 (file)
@@ -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");
index 21450e3..8bc78be 100644 (file)
@@ -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)