提交 373b8ac7 编写于 作者: C Corey Minyard 提交者: Peter Maydell

i2c: Fix some brace style issues

Signed-off-by: NCorey Minyard <cminyard@mvista.com>
Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
Message-id: 20180227104903.21353-2-linus.walleij@linaro.org
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
上级 b8cc8503
......@@ -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;
......
......@@ -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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册