[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH 1/2] i2c: Fix some brace style issues
From: |
minyard |
Subject: |
[Qemu-arm] [PATCH 1/2] i2c: Fix some brace style issues |
Date: |
Mon, 19 Feb 2018 09:20:05 -0600 |
From: Corey Minyard <address@hidden>
Signed-off-by: Corey Minyard <address@hidden>
---
hw/i2c/core.c | 3 +--
include/hw/i2c/i2c.h | 6 ++----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/hw/i2c/core.c b/hw/i2c/core.c
index 59068f1..9a54b61 100644
--- a/hw/i2c/core.c
+++ b/hw/i2c/core.c
@@ -19,8 +19,7 @@ struct I2CNode {
#define I2C_BROADCAST 0x00
-struct I2CBus
-{
+struct I2CBus {
BusState qbus;
QLIST_HEAD(, I2CNode) current_devs;
uint8_t saved_address;
diff --git a/include/hw/i2c/i2c.h b/include/hw/i2c/i2c.h
index 24e95d0..8fd449f 100644
--- a/include/hw/i2c/i2c.h
+++ b/include/hw/i2c/i2c.h
@@ -25,8 +25,7 @@ typedef struct I2CSlave I2CSlave;
#define I2C_SLAVE_GET_CLASS(obj) \
OBJECT_GET_CLASS(I2CSlaveClass, (obj), TYPE_I2C_SLAVE)
-typedef struct I2CSlaveClass
-{
+typedef struct I2CSlaveClass {
DeviceClass parent_class;
/* Callbacks provided by the device. */
@@ -50,8 +49,7 @@ typedef struct I2CSlaveClass
int (*event)(I2CSlave *s, enum i2c_event event);
} I2CSlaveClass;
-struct I2CSlave
-{
+struct I2CSlave {
DeviceState qdev;
/* Remaining fields for internal use by the I2C code. */
--
2.7.4
- Re: [Qemu-arm] [Qemu-devel] [PATCH 3/3] arm/vexpress: Add proper display connector emulation, (continued)
- Re: [Qemu-arm] [Qemu-devel] [PATCH 3/3] arm/vexpress: Add proper display connector emulation, Linus Walleij, 2018/02/19
- Re: [Qemu-arm] [Qemu-devel] [PATCH 3/3] arm/vexpress: Add proper display connector emulation, Corey Minyard, 2018/02/19
- [Qemu-arm] [PATCH 0/2] Move the bus class to i2c.h, minyard, 2018/02/19
- [Qemu-arm] [PATCH 2/2] i2c: Move the bus class to i2c.h, minyard, 2018/02/19
- Re: [Qemu-arm] [Qemu-devel] [PATCH 2/2] i2c: Move the bus class to i2c.h, Peter Maydell, 2018/02/19
- Re: [Qemu-arm] [Qemu-devel] [PATCH 2/2] i2c: Move the bus class to i2c.h, Corey Minyard, 2018/02/20
- Re: [Qemu-arm] [Qemu-devel] [PATCH 2/2] i2c: Move the bus class to i2c.h, Linus Walleij, 2018/02/22
- Re: [Qemu-arm] [Qemu-devel] [PATCH 2/2] i2c: Move the bus class to i2c.h, Peter Maydell, 2018/02/22
- Re: [Qemu-arm] [Qemu-devel] [PATCH 2/2] i2c: Move the bus class to i2c.h, Linus Walleij, 2018/02/22
- Re: [Qemu-arm] [PATCH 2/2] i2c: Move the bus class to i2c.h, Linus Walleij, 2018/02/22
- [Qemu-arm] [PATCH 1/2] i2c: Fix some brace style issues,
minyard <=
- Re: [Qemu-arm] [Qemu-devel] [PATCH 1/2] i2c: Fix some brace style issues, Peter Maydell, 2018/02/19
- Re: [Qemu-arm] [PATCH 1/2] i2c: Fix some brace style issues, Linus Walleij, 2018/02/22
Re: [Qemu-arm] [PATCH 1/3] hw/i2c-ddc: Do not fail writes, Peter Maydell, 2018/02/22