From patchwork Mon Feb 19 15:20:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 128818 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3622457ljc; Mon, 19 Feb 2018 07:22:14 -0800 (PST) X-Google-Smtp-Source: AH8x227CTA/1jRarDXLGqoPhh3nZT9Y4pMKxpgtcJQx9ElvNjlWftwhgpPqVMJVC5+DOJ+kNA3H/ X-Received: by 10.129.35.12 with SMTP id j12mr10876673ywj.200.1519053734618; Mon, 19 Feb 2018 07:22:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519053734; cv=none; d=google.com; s=arc-20160816; b=iJyQgArxd6eTdIINcIRkK9jeopVsI3GxKxfPIRBaRfi9jf7gs2apOIZHLMcw9D59Vt oh05EPE54D9AlLd4v/aGih+U7KnjBNYqxnM/S4OWF2r0IUyk2mKYH8wSqrkJ8kAh4NZt nupRxY7jjzjfgqzHK3Yo0vGBcjocZYKp0PgNdpUg1+adnjpJ8SNcP8KdpUBPV79daMU5 H615/GxW2th4RM9ornpDjhTWn+q6i0LOhrnwhU6BfWYS53c8HJA5vdOvZZpOMVpABSJk 7e0cIHwYvfMIGxgAU4xD6hohC5Ai3w2wFTCp2AlkrUjKL23s1BFRUvAan5PVv9daG04Q RO+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=WLty3MdEjt/HHkvtV23r1UdhxiVMkXWYQTxzyYM+EZo=; b=fSivHa2HqAguslG/kOi3G/cLzLhCnXuEpS3mF1tvd4JDaKes4d1z/ovEkWr1qUu2DF mD4vqOtH3muetS8FWp08O5VyW6rM2lo3LLGgDM+N4LraqXE6MaEpg4z/n1bb86mIo2y4 tlimzZllb8zqVb5OCYLyxrRc/4HtNYxY4T93pEv0mqhF/xIzCC51YxqnOEyA8tAMZeZg iz0RHRciPTGylBn2GZjg3qnMuprauhYxzIXTmzSvtbzgdWwGAn4xteOfnuVjfvBSFwIy CGbHRVQVn9Vc7LokeC0ni03OFoL1OrYOhmnTEXGJf6x4q24b2qC1li6CGqDKEgsODCK0 LgiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=X/cliwqI; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id v129si2577696ybb.18.2018.02.19.07.22.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 19 Feb 2018 07:22:14 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=X/cliwqI; 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 Received: from localhost ([::1]:50793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ennGg-0003mX-1c for patch@linaro.org; Mon, 19 Feb 2018 10:22:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ennEp-00038q-E6 for qemu-devel@nongnu.org; Mon, 19 Feb 2018 10:20:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ennEo-0008Up-F6 for qemu-devel@nongnu.org; Mon, 19 Feb 2018 10:20:19 -0500 Received: from mail-ot0-x243.google.com ([2607:f8b0:4003:c0f::243]:36572) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ennEk-0008SC-9F; Mon, 19 Feb 2018 10:20:14 -0500 Received: by mail-ot0-x243.google.com with SMTP id b15so2796813otf.3; Mon, 19 Feb 2018 07:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=WLty3MdEjt/HHkvtV23r1UdhxiVMkXWYQTxzyYM+EZo=; b=X/cliwqI3zhuUSCptLwPE3GNWbUVHvAGy8dKH8vIe2lQp45rz4DQf2r2G7ksARGmc3 ljNShhR2rnfViUMpDrbbqq6zi+v+Nk1u2RoRQI8tcrhaQ/Na9oqcPwSfKvQYQStIuax2 6MhJKw1gC90CN0VD3XsixQXqG/11QIJtUzdrEkc9qH+sda6sGxpHW9VY7RUVVddCTG6J 1HP0PAImHkeKqMXqVscMkAvy5KeA9++Esu3v0qLJwDa/1o/lfAldtIWFmLTcwwxY8E1g /jE9npYPzbkWIIr6AKhrPvTcA9tcMKGnALx7k54GMS8FyoJeYwb0U/is1XWDxU1k4xBX UW0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=WLty3MdEjt/HHkvtV23r1UdhxiVMkXWYQTxzyYM+EZo=; b=RbZ3vhcARIU/vA/zmqUNFydUe2WmGFvOQ1kwQ2wh24G6ke300XXpFRawWOwAbfijQ9 rcSqZnjR1r3fIaCTDzGo/KnqqwezBleSAgkScy6Piw5KqczIRHsmva12D78CchRjyy4+ ck783o5bO9wcz075x5BPdtrsHyWIZr2+/hmVCvWs8hM1LPXC5hSJxMEqfOc0XigRdmdb 3gM722G/jESxEv0G2+BDN/JCXSdF4rAdTWsRtMH65mQeZQx1tFc8htGv+Zu/rqiTQLtQ 0Urhs2U0m6NuYHWo5UJ7TtculXk/lLW+uvPLyL+Nw4Z9xAzEzQoCC+IhR8odASbZRrEL Pybg== X-Gm-Message-State: APf1xPDsUMuMGGp3uC9I/xj6lCev98V29Ck1d+wjdJZTJzB9Y7OlKMoH yjKAuwIkDqjhVhalSxeWyA== X-Received: by 10.157.0.220 with SMTP id 28mr3875otk.201.1519053613517; Mon, 19 Feb 2018 07:20:13 -0800 (PST) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id s101sm12900305ota.27.2018.02.19.07.20.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 07:20:11 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 2133AB5D; Mon, 19 Feb 2018 09:20:10 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id F1696300081; Mon, 19 Feb 2018 09:20:08 -0600 (CST) From: minyard@acm.org To: Linus Walleij , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?b?YXVkw6k=?= Date: Mon, 19 Feb 2018 09:20:05 -0600 Message-Id: <1519053606-9817-2-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519053606-9817-1-git-send-email-minyard@acm.org> References: <1519053606-9817-1-git-send-email-minyard@acm.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::243 Subject: [Qemu-devel] [PATCH 1/2] 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: , Cc: Corey Minyard , qemu-arm@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard Signed-off-by: Corey Minyard --- hw/i2c/core.c | 3 +-- include/hw/i2c/i2c.h | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) -- 2.7.4 Reviewed-by: Peter Maydell Reviewed-by: Linus Walleij 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. */