From patchwork Tue Feb 27 10:48:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10244761 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 0D24E60208 for ; Tue, 27 Feb 2018 10:50:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 005632022B for ; Tue, 27 Feb 2018 10:50:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8BC6287AE; Tue, 27 Feb 2018 10:50:36 +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 C0C9D2022B for ; Tue, 27 Feb 2018 10:50:35 +0000 (UTC) Received: from localhost ([::1]:36172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqcqA-0007Nk-OS for patchwork-qemu-devel@patchwork.kernel.org; Tue, 27 Feb 2018 05:50:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqcoq-0006JN-Ug for qemu-devel@nongnu.org; Tue, 27 Feb 2018 05:49:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqcop-0004AI-RU for qemu-devel@nongnu.org; Tue, 27 Feb 2018 05:49:12 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:46635) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqcop-00049V-Jx for qemu-devel@nongnu.org; Tue, 27 Feb 2018 05:49:11 -0500 Received: by mail-lf0-x241.google.com with SMTP id r80so26801411lfe.13 for ; Tue, 27 Feb 2018 02:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zxiumG5yKtpafwO9NwXhkvNlQBAThKuZqf9U2cg8vUc=; b=QQKkaIRitQQwh8B9wCarcA00y9eWsIyltP8NHq7DEBXrpOtLLoHTty+b38e1qJUJXj MtvcayV9phbAEC67+jD3fvmWfj+EdMAzUsDhaNRH5cUCQfYO6r9HYP20ZmWUy8J++Obb 1PxgIt5IYvnehMrd1KrnPT4kdKh44I/uTx3g0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zxiumG5yKtpafwO9NwXhkvNlQBAThKuZqf9U2cg8vUc=; b=Am9t+ObLBjmDd3sKSa5TFa3yqj8NIUhxgBJlADjbh4uzu5jxCzajrTZ0Bsqxfvgoua KKNfTbo4qHeXURUbqglIT930QMiuEc/hUTeHOkWjGlqUWoC1TqcpCl5yFjAzhdA8nNuQ NZfm6wgHxMaW2xf1K+Ne6PnJ6Q6Xyne2qSRWgqGM38VlEMyTEA0EiEKSUk6VHYERWkBp IJzWfKWTP4ceb6Qr+KlN53fuFTZrVZb+Q6fNqzRzNbikDIaDnruNtEfxs1GIMlGce78M +keL4zaeUOUxVT8aRYjra44H264c5g5aemSe0q+s64eA56HV52IhQzK0RFvCWrVWU8bC 7Kcw== X-Gm-Message-State: APf1xPCY0gvKfuMVVivFFoL2iGv9DTG1ELLQXudcRTG/uChqlbQR0ckI XozMotPdYt8bJFK4rCN12JFUpLP/q/0= X-Google-Smtp-Source: AG47ELvpiNIhZJRKwDJLDESxP0E+84oJ+dELsK82ZLzdyZizKKNQLmXHY1qyEWJY1a9B4oPvv9TzNA== X-Received: by 10.25.193.23 with SMTP id r23mr9068471lff.45.1519728549999; Tue, 27 Feb 2018 02:49:09 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 74sm2484148ljq.32.2018.02.27.02.49.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Feb 2018 02:49:09 -0800 (PST) From: Linus Walleij To: qemu-devel@nongnu.org, Peter Maydell Date: Tue, 27 Feb 2018 11:48:59 +0100 Message-Id: <20180227104903.21353-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180227104903.21353-1-linus.walleij@linaro.org> References: <20180227104903.21353-1-linus.walleij@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::241 Subject: [Qemu-devel] [PATCH 1/5] 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 , Linus Walleij , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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 Signed-off-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 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. */