aboutsummaryrefslogtreecommitdiff
path: root/src/include/device/path.h
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-07 15:11:07 -0800
committerMartin Roth <martinroth@google.com>2017-03-12 15:46:23 +0100
commit6625ecc3448b59b6adde3f10674cd578f06f786f (patch)
tree489719e94b16ce5fd9659d2d3fad5b85864f84df /src/include/device/path.h
parent84d20d0eb3869d7babaeed7cfbe53f9edad48850 (diff)
src/include: Open brace on same line as enum or struct
Fix the following errors and warning detected by checkpatch.pl: ERROR: open brace '{' following enum go on the same line ERROR: open brace '{' following struct go on the same line ERROR: that open brace { should be on the previous line WARNING: missing space after struct definition TEST=Build and run on Galileo Gen2 Change-Id: I856235d0cc3a3e59376df52561b17b872b3416b2 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18653 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include/device/path.h')
-rw-r--r--src/include/device/path.h33
1 files changed, 11 insertions, 22 deletions
diff --git a/src/include/device/path.h b/src/include/device/path.h
index 1eaa32fb57..5109fdaec3 100644
--- a/src/include/device/path.h
+++ b/src/include/device/path.h
@@ -38,35 +38,29 @@ enum device_path_type {
"DEVICE_PATH_SPI", \
}
-struct domain_path
-{
+struct domain_path {
unsigned int domain;
};
-struct pci_path
-{
+struct pci_path {
unsigned int devfn;
};
-struct pnp_path
-{
+struct pnp_path {
unsigned int port;
unsigned int device;
};
-struct i2c_path
-{
+struct i2c_path {
unsigned int device;
unsigned int mode_10bit;
};
-struct spi_path
-{
+struct spi_path {
unsigned int cs;
};
-struct apic_path
-{
+struct apic_path {
unsigned int apic_id;
unsigned int package_id;
unsigned int node_id;
@@ -74,28 +68,23 @@ struct apic_path
unsigned int thread_id;
};
-struct ioapic_path
-{
+struct ioapic_path {
unsigned int ioapic_id;
};
-struct cpu_cluster_path
-{
+struct cpu_cluster_path {
unsigned int cluster;
};
-struct cpu_path
-{
+struct cpu_path {
unsigned int id;
};
-struct cpu_bus_path
-{
+struct cpu_bus_path {
unsigned int id;
};
-struct generic_path
-{
+struct generic_path {
unsigned int id;
unsigned int subid;
};