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: 10228025 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 08499602B1 for ; Mon, 19 Feb 2018 15:21:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE1F328AEE for ; Mon, 19 Feb 2018 15:21:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC9CD28B4B; Mon, 19 Feb 2018 15:21:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0D3F328BA0 for ; Mon, 19 Feb 2018 15:21:19 +0000 (UTC) Received: from localhost ([::1]:50786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ennFn-00039Y-3N for patchwork-qemu-devel@patchwork.kernel.org; Mon, 19 Feb 2018 10:21:19 -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-Google-Smtp-Source: AH8x226g/Do5KqMDKkcn7O8+NPStg9onvaHJH7GsiYOmqBp2RlTEDQVCn7/7aFbQpJfp8eFfQNJKfg== 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=20Mathieu-Daud=C3=A9?= 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Corey Minyard Signed-off-by: Corey Minyard Reviewed-by: Peter Maydell Reviewed-by: Linus Walleij --- 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. */