From patchwork Mon Jan 9 09:17:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 640595 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp2040588pvb; Mon, 9 Jan 2023 01:31:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXuhh7YDmzbkpH+v5/6p3AQfF62StUc6AJrswZ0n2EuoPl6HDcV6/gxujCY6VAS0239Gj6/u X-Received: by 2002:a0c:c34d:0:b0:532:2a45:46fd with SMTP id j13-20020a0cc34d000000b005322a4546fdmr8316746qvi.51.1673256680864; Mon, 09 Jan 2023 01:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673256680; cv=none; d=google.com; s=arc-20160816; b=uCls0ZpER4dnhVcdzxw47hLb8etcoIsbUZ3zo20kuHiPsA6ZpxNPUFHRen6tsYHvWg BgGNX0skJHS+yZfn1NTAHZdQJjJ3n9ysGS5ZwrPdJRJMb419+Wx/PZG0zBACaJ0m7DQA fusJbhFBgFFWCNs2DpjZYDW8mkpWKEC2aARglt2jcjL9I4WyjGt8FWH6gHQf13IRlJUs scMKOrVd6YPoP+by4M/kpJwmTANwAiKECEPhJqBDVv6+zG8Qn84bryP+7fDb7TlQ7CTb umvwOimfN4pnw316XiEoguvd7HeR1qzvdWtwLSN6BM8B4Uox+OBE0HrbT4S/kFUNgfCB zkBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OIe7Y6R4ZGYTW1AgsVF/JtMshtc/HMe6xazQxLy6+Ac=; b=l4XM7wT0mdIUaxKa6ugqlCvPT896ZJ1fgiXNE8e+xffKmYcy39TtUAm8xTfdf3tamX L5sADtAJcEX1oliWr7fo0a4bzJxOwSvQb+UO5YbjOwKGLpEMiwcUjlRKJrO9/ZylRt9a fTZOuPpLgfscvBSuJWZR0F3z/dFzVUtEMpL//pZ5Jh15ibAylT+kQfXNxyhe8S5sjra1 DvPxPGuq94ubjp3tJ0l1z9qzpNjff4FAFwHFVGwz+8/6Xn307Osmz4F6dY2MOgaHyKP1 L06LeAriyM89Kx5oSpIHMlFZQj07+ed8lTK8tQndZ6pMjwMB2UdtDC7otTWXnX+49DQk MWxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xSR5sayn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y28-20020a37f61c000000b006fc9b17e2bbsi4095805qkj.60.2023.01.09.01.31.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jan 2023 01:31:20 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xSR5sayn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEoIH-0000xM-Hr; Mon, 09 Jan 2023 04:18:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEoID-0000vA-9P for qemu-devel@nongnu.org; Mon, 09 Jan 2023 04:18:10 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEoIA-0002kG-Qg for qemu-devel@nongnu.org; Mon, 09 Jan 2023 04:18:08 -0500 Received: by mail-wr1-x435.google.com with SMTP id r2so7459647wrv.7 for ; Mon, 09 Jan 2023 01:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OIe7Y6R4ZGYTW1AgsVF/JtMshtc/HMe6xazQxLy6+Ac=; b=xSR5saynuC3VTXQ4y7L+weOHfsYJEuC1wJ91CRxG0aTNTheGzmqlgeXoy+gxc0p7RK DfxtB+1pccm1mmYYecT9I3dbI6kCLC5KxoHPC+uBsv8W35+ZxkgQl73dHoRnlwoVGhQ4 FH+Wn8Zsl7mvrK+Jq440iVNlRHYLw3MwpA10AWt2qic3Zs+Hk95FQaASpEQVkgsKc+nf Rd7rsTAbRW0K0jQa4dBdpK0vCIT3LKOvu3Rzf7ZXtjrcq60ogFtnUfIMvTlNiqbM1m51 vsMZs1pTtl9SyDIUYL/Uugteh+iQn9tkzWLrm/8lXrDeCTiCtJ+3wHeTs9dwqF5Y9V51 XSsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OIe7Y6R4ZGYTW1AgsVF/JtMshtc/HMe6xazQxLy6+Ac=; b=GcPsZTXaFkqmM2JeZra8kaJg0J5MZcjLA1dtPP8zpawtsnUyOqxYdvTMLrqCr+3zls yKqSd+Uec6gdSsFFo/S7cLzY1qopBF54egagoXtjx5swgBAvKw3M+6C0vuzBT8TZvmvL fNp3sR9vqWvhNIhwHHEsFQi0oWxbL6RDZz2pBFbIIWIhaIaCuUwkMGZJkwp/XOZZ7gav bKWk0PNxCG7RvcEcRnDzM1G4YeHDggA7Dn1Z3G00GJlyvUVB3ltWW8e3oXuMp7+UEBk5 KLFrZXKmzFzSIbqM6HMaRgyROhc9H7eQhjqV5eBfHlU6ADHf+bHvbdQ0gSxSZLy21GG0 GtXg== X-Gm-Message-State: AFqh2kpkB4tlb7O6pVUTY3GKpKVzkfE9I7khJKyyPOtTbFf0m50RkxVI I6TraeAXJm+AdugZoMmM2dC2eOhE2zvMBVEH X-Received: by 2002:adf:cf11:0:b0:242:6777:de38 with SMTP id o17-20020adfcf11000000b002426777de38mr39891631wrj.10.1673255885267; Mon, 09 Jan 2023 01:18:05 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id q11-20020adf9dcb000000b00268aae5fb5bsm8124614wre.3.2023.01.09.01.18.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Jan 2023 01:18:04 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/5] hw/i2c/versatile_i2c: Replace VersatileI2CState -> ArmSbconI2CState Date: Mon, 9 Jan 2023 10:17:51 +0100 Message-Id: <20230109091754.79499-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230109091754.79499-1-philmd@linaro.org> References: <20230109091754.79499-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=philmd@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org In order to rename TYPE_VERSATILE_I2C as TYPE_ARM_SBCON_I2C (the formal ARM naming), start renaming its state. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i2c/versatile_i2c.c | 10 +++++----- include/hw/i2c/arm_sbcon_i2c.h | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/i2c/versatile_i2c.c b/hw/i2c/versatile_i2c.c index 52a650f45e..ee095762e5 100644 --- a/hw/i2c/versatile_i2c.c +++ b/hw/i2c/versatile_i2c.c @@ -30,7 +30,7 @@ #include "qom/object.h" typedef ArmSbconI2CState VersatileI2CState; -DECLARE_INSTANCE_CHECKER(VersatileI2CState, VERSATILE_I2C, +DECLARE_INSTANCE_CHECKER(ArmSbconI2CState, VERSATILE_I2C, TYPE_VERSATILE_I2C) @@ -45,7 +45,7 @@ REG32(CONTROL_CLR, 4) static uint64_t versatile_i2c_read(void *opaque, hwaddr offset, unsigned size) { - VersatileI2CState *s = opaque; + ArmSbconI2CState *s = opaque; switch (offset) { case A_CONTROL_SET: @@ -60,7 +60,7 @@ static uint64_t versatile_i2c_read(void *opaque, hwaddr offset, static void versatile_i2c_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - VersatileI2CState *s = opaque; + ArmSbconI2CState *s = opaque; switch (offset) { case A_CONTROL_SET: @@ -86,7 +86,7 @@ static const MemoryRegionOps versatile_i2c_ops = { static void versatile_i2c_init(Object *obj) { DeviceState *dev = DEVICE(obj); - VersatileI2CState *s = VERSATILE_I2C(obj); + ArmSbconI2CState *s = VERSATILE_I2C(obj); SysBusDevice *sbd = SYS_BUS_DEVICE(obj); I2CBus *bus; @@ -100,7 +100,7 @@ static void versatile_i2c_init(Object *obj) static const TypeInfo versatile_i2c_info = { .name = TYPE_VERSATILE_I2C, .parent = TYPE_SYS_BUS_DEVICE, - .instance_size = sizeof(VersatileI2CState), + .instance_size = sizeof(ArmSbconI2CState), .instance_init = versatile_i2c_init, }; diff --git a/include/hw/i2c/arm_sbcon_i2c.h b/include/hw/i2c/arm_sbcon_i2c.h index f54d1e5413..0101422d9d 100644 --- a/include/hw/i2c/arm_sbcon_i2c.h +++ b/include/hw/i2c/arm_sbcon_i2c.h @@ -21,8 +21,7 @@ #define TYPE_ARM_SBCON_I2C TYPE_VERSATILE_I2C typedef struct ArmSbconI2CState ArmSbconI2CState; -DECLARE_INSTANCE_CHECKER(ArmSbconI2CState, ARM_SBCON_I2C, - TYPE_ARM_SBCON_I2C) +DECLARE_INSTANCE_CHECKER(ArmSbconI2CState, ARM_SBCON_I2C, TYPE_ARM_SBCON_I2C) struct ArmSbconI2CState { /*< private >*/