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: 129760 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1243706lja; Tue, 27 Feb 2018 02:49:43 -0800 (PST) X-Google-Smtp-Source: AH8x226GserZM0OHqshGL0QKdtNbeYdh0Zqkq84IL/CUvHsP1/fdigdKnfb92OfTZ4Y2Jr3pBR4i X-Received: by 10.129.40.196 with SMTP id o187mr9175840ywo.497.1519728583613; Tue, 27 Feb 2018 02:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519728583; cv=none; d=google.com; s=arc-20160816; b=A40+pmkcuTYuH/EU7shW2FWq1UoAZm/5ZZ2UeOd9xNZMPAuAjtDaya3cyRZpujSdCu 0GUirzxMoRY+l8RiffQJhbh9d/nm1whCS8WR2iwSdgF0MyiDruZN05gudrx+XX+DCCN4 WEe04SXiMlCfiyFTh689qoxMaorz5UmxTw/0cemfKJic7kIyIN8qIRMR5W438u6mcuFU nuPraKdj+t2JEOVZz9v+1XAj5T7oiOUFQK2+JbeWvdDBMIii/zNbAlcgdVT520trXBVj Ylt8nCH0hlblh0OOg4tnA1M5TiH0G8aP7h5P790O+08YJ56/1ipizkO4DCCl/BT3FaYR 6OJg== 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=zxiumG5yKtpafwO9NwXhkvNlQBAThKuZqf9U2cg8vUc=; b=OLJMY1usVQeazJEuoEJKB/eIQU7iKWji9sjQRg6dCdTE+jRHY2eZJ0AuGvQkG06niW GWYhzcWfN6JM15GHOBa4Bts2KMZ2lhB27qo1eoA3q2CPOM0SK0C5dMTueLut31uLToJf ZcuaRLBjtlFR5ZQpVeuy1fiFiG3RQyXRdPZqSDkpRw/7qUt3LJbNtOjCjUkcnj6QR9Ls N2Bh+yYvnzQBZ5YCUwqAyW31Op32NPv0b+M6oc+3STdliQEOeN0WcbV2t9N7qhDFUBTb t+h6+lYvcvvEWHk6B94Otjwb/TQQujDmOoco2jyQeWqQ2SeKCc+Dawykwu4sKTaDa6Lx plzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QQKkaIRi; 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 j2si1855314ywj.803.2018.02.27.02.49.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 27 Feb 2018 02:49:43 -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=@linaro.org header.s=google header.b=QQKkaIRi; 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]:36159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqcpK-0006Jj-WD for patch@linaro.org; Tue, 27 Feb 2018 05:49:43 -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-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+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 --- hw/i2c/core.c | 3 +-- include/hw/i2c/i2c.h | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) -- 2.14.3 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. */