diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-07 12:55:23 -0800 |
---|---|---|
committer | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-09 17:19:16 +0100 |
commit | ae3fd34e0074da005c3fba471060965c14f3ec76 (patch) | |
tree | 803fee9bd7778ea7e2f7dda4b5c76f30e3478293 /src/include/device | |
parent | 708fc274b54dfd13fb83edae17cea9ead0a0f2be (diff) |
src/include: Add space after comma
Fix the following error detected by checkpatch.pl:
ERROR: space required after that ',' (ctx:VxV)
TEST=Build and run on Galileo Gen2
Change-Id: I297bfc3d03dc95b471d3bb4b13803e81963841b5
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18647
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/azalia.h | 2 | ||||
-rw-r--r-- | src/include/device/pci.h | 2 | ||||
-rw-r--r-- | src/include/device/pci_def.h | 2 | ||||
-rw-r--r-- | src/include/device/resource.h | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/include/device/azalia.h b/src/include/device/azalia.h index 2af4696cd0..0ac4fcd8a7 100644 --- a/src/include/device/azalia.h +++ b/src/include/device/azalia.h @@ -113,7 +113,7 @@ enum AzaliaPinCfgMisc { union AzaliaPinConfiguration { unsigned int value; - struct __attribute__((aligned(4),packed)) { + struct __attribute__((aligned(4), packed)) { enum AzaliaPinCfgPortConnectivity port:2; unsigned char location:6; enum AzaliaPinCfgDefaultDevice device:4; diff --git a/src/include/device/pci.h b/src/include/device/pci.h index 8dc7c46d35..13d63d4f6c 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -54,7 +54,7 @@ struct pci_driver { const unsigned short *devices; }; -#define __pci_driver __attribute__ ((used,__section__(".rodata.pci_driver"))) +#define __pci_driver __attribute__ ((used, __section__(".rodata.pci_driver"))) /** start of compile time generated pci driver array */ extern struct pci_driver _pci_drivers[]; /** end of compile time generated pci driver array */ diff --git a/src/include/device/pci_def.h b/src/include/device/pci_def.h index ef3427b4e7..e11470c695 100644 --- a/src/include/device/pci_def.h +++ b/src/include/device/pci_def.h @@ -479,7 +479,7 @@ * 7:3 = slot * 2:0 = function */ -#define PCI_DEVFN(slot,func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) +#define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) #define PCI_FUNC(devfn) ((devfn) & 0x07) diff --git a/src/include/device/resource.h b/src/include/device/resource.h index 7160eec74a..1a8c451982 100644 --- a/src/include/device/resource.h +++ b/src/include/device/resource.h @@ -46,10 +46,10 @@ struct resource { }; /* Macros to generate index values for resources */ -#define IOINDEX_SUBTRACTIVE(IDX,LINK) (0x10000000 + ((IDX) << 8) + LINK) +#define IOINDEX_SUBTRACTIVE(IDX, LINK) (0x10000000 + ((IDX) << 8) + LINK) #define IOINDEX_SUBTRACTIVE_LINK(IDX) (IDX & 0xff) -#define IOINDEX(IDX,LINK) (((LINK) << 16) + IDX) +#define IOINDEX(IDX, LINK) (((LINK) << 16) + IDX) #define IOINDEX_LINK(IDX) (( IDX & 0xf0000) >> 16) #define IOINDEX_IDX(IDX) (IDX & 0xffff) |