staging: kpc2000: fix coding style in pcie.h
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 08:47:11 +0000 (10:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2019 06:14:18 +0000 (08:14 +0200)
Use tabs in pcie.h, like is mandated.

Cc: Matt Sickler <Matt.Sickler@daktronics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000/pcie.h

index e204f12632dc6b1a6253a2efaedb68d9ca308b3f..59db46752961ebc2de4179d71a333ca3969f4551 100644 (file)
  *      9   <---------------------- IRQ Active Flags ---------------------->
  */
 
-#define REG_WIDTH   8
-#define REG_MAGIC_NUMBER            (0 * REG_WIDTH)
-#define REG_CARD_ID_AND_BUILD       (1 * REG_WIDTH)
-#define REG_DATE_AND_TIME_STAMPS    (2 * REG_WIDTH)
-#define REG_CORE_TABLE_OFFSET       (3 * REG_WIDTH)
-#define REG_FPGA_SSID               (4 * REG_WIDTH)
-#define REG_FPGA_HW_ID              (5 * REG_WIDTH)
-#define REG_FPGA_DDNA               (6 * REG_WIDTH)
-#define REG_CPLD_CONFIG             (7 * REG_WIDTH)
-#define REG_INTERRUPT_MASK          (8 * REG_WIDTH)
-#define REG_INTERRUPT_ACTIVE        (9 * REG_WIDTH)
-#define REG_PCIE_ERROR_COUNT        (10 * REG_WIDTH)
-
-#define KP2000_MAGIC_VALUE      0x196C61482231894D
-
-#define PCI_VENDOR_ID_DAKTRONICS    0x1c33
-#define PCI_DEVICE_ID_DAKTRONICS    0x6021
-
-#define DMA_BAR     0
-#define REG_BAR     1
+#define REG_WIDTH                      8
+#define REG_MAGIC_NUMBER               (0 * REG_WIDTH)
+#define REG_CARD_ID_AND_BUILD          (1 * REG_WIDTH)
+#define REG_DATE_AND_TIME_STAMPS       (2 * REG_WIDTH)
+#define REG_CORE_TABLE_OFFSET          (3 * REG_WIDTH)
+#define REG_FPGA_SSID                  (4 * REG_WIDTH)
+#define REG_FPGA_HW_ID                 (5 * REG_WIDTH)
+#define REG_FPGA_DDNA                  (6 * REG_WIDTH)
+#define REG_CPLD_CONFIG                        (7 * REG_WIDTH)
+#define REG_INTERRUPT_MASK             (8 * REG_WIDTH)
+#define REG_INTERRUPT_ACTIVE           (9 * REG_WIDTH)
+#define REG_PCIE_ERROR_COUNT           (10 * REG_WIDTH)
+
+#define KP2000_MAGIC_VALUE             0x196C61482231894D
+
+#define PCI_VENDOR_ID_DAKTRONICS       0x1c33
+#define PCI_DEVICE_ID_DAKTRONICS       0x6021
+
+#define DMA_BAR                                0
+#define REG_BAR                                1
 
 struct kp2000_device {
-    struct pci_dev     *pdev;
-    struct miscdevice   miscdev;
-    char                name[16];
-
-    unsigned int        card_num;
-    struct mutex        sem;
-
-    void __iomem       *sysinfo_regs_base;
-    void __iomem       *regs_bar_base;
-    struct resource     regs_base_resource;
-    void __iomem       *dma_bar_base;
-    void __iomem       *dma_common_regs;
-    struct resource     dma_base_resource;
-
-    // "System Registers"
-    u32                 card_id;
-    u32                 build_version;
-    u32                 build_datestamp;
-    u32                 build_timestamp;
-    u32                 core_table_offset;
-    u32                 core_table_length;
-    u8                  core_table_rev;
-    u8                  hardware_revision;
-    u64                 ssid;
-    u64                 ddna;
-
-    // IRQ stuff
-    unsigned int        irq;
-
-    struct list_head    uio_devices_list;
+       struct pci_dev          *pdev;
+       struct miscdevice       miscdev;
+       char                    name[16];
+
+       unsigned int            card_num;
+       struct mutex            sem;
+
+       void __iomem            *sysinfo_regs_base;
+       void __iomem            *regs_bar_base;
+       struct resource         regs_base_resource;
+       void __iomem            *dma_bar_base;
+       void __iomem            *dma_common_regs;
+       struct resource         dma_base_resource;
+
+       // "System Registers"
+       u32                     card_id;
+       u32                     build_version;
+       u32                     build_datestamp;
+       u32                     build_timestamp;
+       u32                     core_table_offset;
+       u32                     core_table_length;
+       u8                      core_table_rev;
+       u8                      hardware_revision;
+       u64                     ssid;
+       u64                     ddna;
+
+       // IRQ stuff
+       unsigned int            irq;
+
+       struct list_head        uio_devices_list;
 };
 
 extern struct class *kpc_uio_class;
 extern struct attribute *kpc_uio_class_attrs[];
 
-int   kp2000_probe_cores(struct kp2000_device *pcard);
-void  kp2000_remove_cores(struct kp2000_device *pcard);
+int kp2000_probe_cores(struct kp2000_device *pcard);
+void kp2000_remove_cores(struct kp2000_device *pcard);
 
 // Define this quick little macro because the expression is used frequently
-#define PCARD_TO_DEV(pcard)  (&(pcard->pdev->dev))
+#define PCARD_TO_DEV(pcard)    (&(pcard->pdev->dev))
 
 #endif /* KP2000_PCIE_H */