qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org, "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Corey Minyard" <cminyard@mvista.com>,
	"Linus Walleij" <linus.walleij@linaro.org>
Subject: [Qemu-devel] [PATCH 1/5] i2c: Fix some brace style issues
Date: Tue, 27 Feb 2018 11:48:59 +0100	[thread overview]
Message-ID: <20180227104903.21353-2-linus.walleij@linaro.org> (raw)
In-Reply-To: <20180227104903.21353-1-linus.walleij@linaro.org>

From: Corey Minyard <cminyard@mvista.com>

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 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 59068f157eb5..9a54b61c1dbd 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 24e95d015589..8fd449f645f0 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.14.3

  reply	other threads:[~2018-02-27 10:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-27 10:48 [Qemu-devel] [PATCH 0/5] Versatile Express SiI9022 emulation Linus Walleij
2018-02-27 10:48 ` Linus Walleij [this message]
2018-02-27 10:49 ` [Qemu-devel] [PATCH 2/5] i2c: Move the bus class to i2c.h Linus Walleij
2018-02-27 10:49 ` [Qemu-devel] [PATCH 3/5] hw/i2c-ddc: Do not fail writes Linus Walleij
2018-02-27 23:38   ` Philippe Mathieu-Daudé
2018-02-27 10:49 ` [Qemu-devel] [PATCH 4/5] hw/sii9022: Add support for Silicon Image SII9022 Linus Walleij
2018-02-27 17:19   ` Peter Maydell
2018-02-27 10:49 ` [Qemu-devel] [PATCH 5/5] arm/vexpress: Add proper display connector emulation Linus Walleij
2018-02-27 17:12   ` Peter Maydell
2018-02-27 23:34   ` Philippe Mathieu-Daudé
2018-02-27 17:26 ` [Qemu-devel] [PATCH 0/5] Versatile Express SiI9022 emulation Peter Maydell
2018-02-28 12:44   ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180227104903.21353-2-linus.walleij@linaro.org \
    --to=linus.walleij@linaro.org \
    --cc=cminyard@mvista.com \
    --cc=f4bug@amsat.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).