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: 878447 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="QQKkaIRi"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zrFp71D3zz9s1j for ; Tue, 27 Feb 2018 21:50:05 +1100 (AEDT) Received: from localhost ([::1]:36159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqcpc-0006Jj-UG for incoming@patchwork.ozlabs.org; Tue, 27 Feb 2018 05:50:03 -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_M?= =?utf-8?q?athieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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. */