From patchwork Thu Mar 1 11:23:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 130143 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp2678176edc; Thu, 1 Mar 2018 03:29:57 -0800 (PST) X-Google-Smtp-Source: AG47ELvXS7xIg76ekI/Z7b0x+BcDZ45jb2mnC/Blocyz5xfjR/BvBfihsFc8oDBj5WybtEdx4hqK X-Received: by 2002:a25:ea52:: with SMTP id o18-v6mr770163ybe.284.1519903797788; Thu, 01 Mar 2018 03:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519903797; cv=none; d=google.com; s=arc-20160816; b=Pk0SJmk56W33Vft3n3sVBR3gy/BEVp494txUx8OrDEkqyIwLauqEsZt6P13WRa8wWo WEw3qq2AOtNb9QEZfFaA6QZbN/1Vp7oIH9R64FYUb5qasPeJfkTZcmSLgFUmgjpgjv9I UQVLXxnZX29H04MdLfDWOAkS2oo2o/pmg8ZEO1kqB27G6WY+UUVOcgGtGEm/nN0mZSIC UB1e/kY7Lws/VfnrSUIh1zWU8+S/9zthwIiJQBtyGH3GcTJFaNQB3BMPgbpMhhKAIRU6 Pzq364HBMlmplXVA0mt15SYsFppG44NScC3U7RYVQEf+MWHJJLMp1X24+1VNrvgmMwpr AXTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:arc-authentication-results; bh=TQPRKgYZ0+Lbc7bJ+7Xrdz3FGtX5orsXzcItp5AACvc=; b=1G/5eXiRUE9GxoxiAZ0/gGOQM1poCCgZhP4ZDO+W4c+ndYOl5mpniOn2LVq6rC4+7J Jm4GjBhguK0EViabjFtmltGEIp0zrcVcCo/c6mfjwMVYwbWOTclaucaPlEfobUs94+cF 54ycXZ27mfm4a22vGP9fhJVRKjVTLUhzPHgpytG0LJU3tH73nI2xYKqZZ6CSaNlohd2o mLTNkSCdTEc/hf728l4oluCiketooX1A/JhKsZlRoalRRc43Mfh25wuFKZAEolkPTxBs 9ssD2piX6ElObim/aN13K86IjZPxeRgwNJLrdOrvv5SC0X7SrTIfJCBQN4Vm7TrcRqLx WB1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 1-v6si616932ybf.319.2018.03.01.03.29.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 01 Mar 2018 03:29:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erMPN-0000Jy-0L for patch@linaro.org; Thu, 01 Mar 2018 06:29:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erMJu-0003i4-AL for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erMJt-00086n-Al for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:18 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:46702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erMJt-00084x-3P for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:17 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from ) id 1erMJj-0000Y1-Al for qemu-devel@nongnu.org; Thu, 01 Mar 2018 11:24:07 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 1 Mar 2018 11:23:25 +0000 Message-Id: <20180301112403.12487-5-peter.maydell@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180301112403.12487-1-peter.maydell@linaro.org> References: <20180301112403.12487-1-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 04/42] i2c: Fix some brace style issues X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard Signed-off-by: Corey Minyard Reviewed-by: Peter Maydell Signed-off-by: Linus Walleij Message-id: 20180227104903.21353-2-linus.walleij@linaro.org Signed-off-by: Peter Maydell --- include/hw/i2c/i2c.h | 6 ++---- hw/i2c/core.c | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) -- 2.16.2 diff --git a/include/hw/i2c/i2c.h b/include/hw/i2c/i2c.h index 24e95d0155..8fd449f645 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. */ diff --git a/hw/i2c/core.c b/hw/i2c/core.c index 59068f157e..9a54b61c1d 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;