From patchwork Mon Jan 9 09:17:49 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: 640587 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp2037105pvb; Mon, 9 Jan 2023 01:19:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXucVqWrxUt/0A5LYB3tgZb14uaCztpS7afbpwxgGsAf7Lw18o0CHgjVhNETzNnXwBthmTQ/ X-Received: by 2002:a05:6214:2c09:b0:532:1fc2:9ad5 with SMTP id lc9-20020a0562142c0900b005321fc29ad5mr11840509qvb.0.1673255981586; Mon, 09 Jan 2023 01:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673255981; cv=none; d=google.com; s=arc-20160816; b=CkTH5/jAAdhp/8pZ4YMnzGHwyCOO/DqV2Aah4GRO4WqP3gPX8ELSUqjt3l01pYifrg Tje9OV4FNYsnERAHCOEfi5pegvrEi34og1xP0fHW17oS0dsrhWyUQxGx9+BIK7L573e/ 0iH0KPuEUSVTJH3a/CF+9XANueRxC9IFwGPLeS7H9EFnBCwIULEe0CJZUuECO+aeuVpV 8lEu4n+t1qaIaYj+JILq9vWazzzfjd5PRmmiowbLm9Da2xqXVo5T1VYu7T3oW8qfZlJZ sCUMWlmNRDREcjKrSA1gRyhzR/ymWZvWIibL6YJehntTxzW4vAObJacGw8AOg0B1noQg 6dsQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=2QbiPkSepNTipu9Sy6f9nk00cA9LLT9J23YFFYJq0ZY=; b=B+Bdh8CpEwQZDmr/ITT1S79nb1c2SzHSQQ0KiP0cSUv3JbwY/kJZVncZL1ejGLJrMq ns+dzhqOkSmaHk06oPVIZvcsZS/JO/zg1u9N3B4u/oLD9Z9UlbmMgvXxdIw04mdEpXGq f1oBuJgYUAuBSfEIjY3T4n/ebU9p7EDZTQ5KMXoqIuBHAkExgy6U7gn4rdh1EKwQJSQJ PQaZNwR1L+k4mA2J40KiIlknTOFTRq60T9pAVALsqUK8DDH9a5W4ROTbhKP25QP4lNCo F707GQSuF9KaipuUXyHJt9rE+b5oJfJFY49faprKcAkfbAONgWtUhQO8K6WVlF4WXOSU S8Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4TIAu7P; 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 s13-20020a0562140cad00b0053232c7565bsi410049qvs.135.2023.01.09.01.19.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jan 2023 01:19:41 -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=X4TIAu7P; 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 1pEoI5-0000rV-DP; Mon, 09 Jan 2023 04:18:01 -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 1pEoI3-0000qi-D0 for qemu-devel@nongnu.org; Mon, 09 Jan 2023 04:17:59 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEoI1-0002ZJ-Of for qemu-devel@nongnu.org; Mon, 09 Jan 2023 04:17:59 -0500 Received: by mail-wm1-x333.google.com with SMTP id bi26-20020a05600c3d9a00b003d3404a89faso6582134wmb.1 for ; Mon, 09 Jan 2023 01:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2QbiPkSepNTipu9Sy6f9nk00cA9LLT9J23YFFYJq0ZY=; b=X4TIAu7PuTihi+UQYeyf91GRDtqtPHUGxdgLU6l88g43G+1G5Ct1lBgz/eylVHUspM cSZmO2WDb7/sAeCe8yccpKAQjZnLI+aKYKUnti6GpjTTTBQw8TzBMe4cQVObuqenWSYh d2RMy52h3RXDKe2STO+GauatZCp7r4wenELUUZRJdlSWQKv0peXXZVKZfzA+0CVAs9e0 1f0G8zMK4DrFdCJUFrJNShSrXgfmjUDD7lV6JBsNp44EfIuZkw3IVwMrHb3PmuInaEs7 P35Xf3MfQiP6UdkPuJyTLZaCDxntDSsivtCpE6gcjNrt5h7w4imDlX6s0Wflx/T3wb/d Qurw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2QbiPkSepNTipu9Sy6f9nk00cA9LLT9J23YFFYJq0ZY=; b=D5gA3Yph/tPUY8PKw5GS0+0vvf3njdvrdjF2GmtOdaQtu23pfTgq9knI3UYUqrBWVQ dAuMRLqC31CMfIV4WSP2St5d9/B4bDbGC+48UQgLB5izKXGqFdbyfACG2BdJgBtmj584 IMoTHn2dVVqZdH6SxdGTCyUeQTzwm2Rh/HFO633xFfNgec3HiiSFR4gyEqan2rBvzO/7 eNJfIPl/YW62FhQovL07xOfdm3mWOHNOO1KD4ZtVUuWMhc6AGOhLyJY2zH4CqnPcN+bS EaaE5dE8k3TClh+V9QQAwKl6K/RcUbNXoT1kHn7ieIH1Dx7kuH3bkS4ikRTTLoLcpRs/ e8VQ== X-Gm-Message-State: AFqh2kpLscGU8IuYwNH7eI8mJESxVmqlWKObomdmCuDQdp/t5Si3GAQq DZq/clkNb6QNPVmHgxNGN8hO1xu7cLifRdAe X-Received: by 2002:a05:600c:3506:b0:3cf:803b:d7cc with SMTP id h6-20020a05600c350600b003cf803bd7ccmr48772705wmq.33.1673255876012; Mon, 09 Jan 2023 01:17:56 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id n7-20020a05600c4f8700b003c6bd12ac27sm12072388wmq.37.2023.01.09.01.17.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Jan 2023 01:17:55 -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 0/5] hw/i2c: Rename TYPE_VERSATILE_I2C -> TYPE_ARM_SBCON_I2C Date: Mon, 9 Jan 2023 10:17:49 +0100 Message-Id: <20230109091754.79499-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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 Lot of churn for what started as a QOM cleanup. We have: typedef ArmSbconI2CState VersatileI2CState; // [*] DECLARE_INSTANCE_CHECKER(VersatileI2CState, VERSATILE_I2C, TYPE_VERSATILE_I2C) typedef struct ArmSbconI2CState ArmSbconI2CState; DECLARE_INSTANCE_CHECKER(ArmSbconI2CState, ARM_SBCON_I2C, TYPE_ARM_SBCON_I2C) In a later QOM rework series, [*] produces definitions clash. The simplest fix is to avoid having different types defining the same QOM model. This model started named TYPE_VERSATILE_I2C then we figured the official ARM name (did it came later?), and renamed as TYPE_ARM_SBCON_I2C. Finish the conversion, remove VERSATILE_I2C name and only refer to this model as ARM_SBCON_I2C. Philippe Mathieu-Daudé (5): hw/i2c/versatile_i2c: Drop useless casts from void * to pointer hw/i2c/versatile_i2c: Replace VersatileI2CState -> ArmSbconI2CState hw/i2c/versatile_i2c: Replace TYPE_VERSATILE_I2C -> TYPE_ARM_SBCON_I2C hw/i2c/versatile_i2c: Use ARM_SBCON_I2C() macro hw/i2c/versatile_i2c: Rename versatile_i2c -> arm_sbcon_i2c hw/arm/Kconfig | 4 +-- hw/arm/realview.c | 2 +- hw/arm/versatilepb.c | 2 +- hw/arm/vexpress.c | 2 +- hw/i2c/Kconfig | 2 +- hw/i2c/{versatile_i2c.c => arm_sbcon_i2c.c} | 39 +++++++++------------ hw/i2c/meson.build | 2 +- include/hw/i2c/arm_sbcon_i2c.h | 6 ++-- 8 files changed, 26 insertions(+), 33 deletions(-) rename hw/i2c/{versatile_i2c.c => arm_sbcon_i2c.c} (70%)