From patchwork Mon Jan 9 14:02:52 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: 640660 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp2202398pvb; Mon, 9 Jan 2023 07:26:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvgVqf4Vy0PXn0Bhva+bHy1YimprL+etJU/kgagWOjvtTcte35soTuZ/obDvj8TgAxGNxc9 X-Received: by 2002:a05:6214:50c:b0:531:9e7a:6778 with SMTP id px12-20020a056214050c00b005319e7a6778mr55778230qvb.1.1673277988847; Mon, 09 Jan 2023 07:26:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673277988; cv=none; d=google.com; s=arc-20160816; b=q1dv0aKMI2FjXjb82QPWfDoH17/dKJyBi+7TEfdafvhUwYmCGKKZgAM/TRCXu8pIky CkpmQzoermFms5Fa+IxoT8vE/2cpt+mD8hEQCprTUlsrnu5Qxd9enGR2rosYFe/Wkioe Ofyu66xkVi2y0ryTnesVjEWafZ8eNxkDYuVmqc4tSTMIgPTg6GaJc2XlSLZOBH6iEdSe F0/CnfcQszO6ySdbv1QaM+kntpbzZvjyUJ7uzyKBiqKYCyOWvXeE9zceNo2ytpoQpKoC 2bGZf8YvG3TyDg1qQ4WHR5WHvOMdxsFDrK1zbtsn6h6AzJDRJ5yHD/33nmr5EOszfER0 RhKQ== 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=lpu5SKcEKLbf6iXn0npn8iBGzhoC7Iq9AT+jjeNugWM=; b=y7UxWBADxW822yYTEjKrD3nlriJDHGBxu8PIDIDWZfBg16sjnpDyNQEsQ605gNADY6 LPDXC/o3+cRO6V7jsbHZZZacvAM0JP95x1NhaTAObL2ECpyqvdcC1R1KZ8GiIBPQgxO1 YlXkNPd2kwLHkDV3xpxIhiFJQSXmYwBRFI22jp3VvVemPOqOs0gV/LIl+XWpqSHiQo3O WCjdQqqqOGf+3kkckTE7VpxGvQWX0AFqr79iFLt5/l1CEH/dY3ggYmGCXusYUqhva3oW b927hyP47T/XL3DjuqxwOCw0kAfKd6tHbbCRaXkqMcfcIEl1f0Jiq4dVl8tS/XMb8MbC WA7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jNmpRDJW; 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 2-20020a056214202200b004c751151a10si4904787qvf.532.2023.01.09.07.26.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jan 2023 07:26:28 -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=jNmpRDJW; 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 1pEskA-0001Sh-3B; Mon, 09 Jan 2023 09:03:18 -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 1pEsk4-0001Ns-Li for qemu-devel@nongnu.org; Mon, 09 Jan 2023 09:03:15 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEsk2-0006LE-PZ for qemu-devel@nongnu.org; Mon, 09 Jan 2023 09:03:12 -0500 Received: by mail-wm1-x336.google.com with SMTP id c4-20020a1c3504000000b003d9e2f72093so4275094wma.1 for ; Mon, 09 Jan 2023 06:03:10 -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=lpu5SKcEKLbf6iXn0npn8iBGzhoC7Iq9AT+jjeNugWM=; b=jNmpRDJWrRKW4WLC/ZFdDoOBGr6KYLN0qDZ5cOLQmDiwJrF7tb/atiYdd86JfbPKP4 1wD1JaX+rNy+KpwUEUroNRPiwhLbxWexBadI/YHfeSt+rzNuO8joJCQsLqp2GxIdKInZ 3O+iw47rVpI0Z4rIVD7EQ0UPAhMzTfC6wlvUmAHc6ZcnVLiHw2pN/8dBEhIU/5TK5LLw L2Gcb0C8XM2PLQPYhP1gDC2LtikkcEibggdOKMKzfbSQ2YmLXbNmrFT0NvI+aKkqI2al f16Gq+wOeNDtBNd/OetSmSW/NDgABZz/w4BcxBdtg+rfgTL59Nc9cSvB2DNexgXkWQXW dfaQ== 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=lpu5SKcEKLbf6iXn0npn8iBGzhoC7Iq9AT+jjeNugWM=; b=diztRxi8cJTmummMChSVIsGNZMfL5tjj9EQRjMlfC68f/X3/io5FqgFDnQtbxiiUqG HZSBb11lRJvGuoXS75PZLBGMeFMc/cizQ8Mipz8qJPPSHZod9FcFzQhElyxDq5ZQ7sBq pdh8Szfxeh8UAEQ10t2JWd+9X5baXxsZjVHenp0I/Smcx1Tj4eyQ0NgM4dgFyI/fgc4k dK27gxqfMt8Gwy2qZZZmnN9dWX4YDBhdcI1pxSnbqg/hoMJbq9Jare2faVLhYZft9Jzp hN+eN35/JqY+ez5PdRESAg4SEblWLpjc6ojWvOZCWuMMLLH3LobiOjhxmYYoXLiFe9WE qu4A== X-Gm-Message-State: AFqh2kr0kk2JJSlZO/mEKEchHpyYWeeKwYUihkWk0YZ3KB50syoS2N86 utQYUiv6mjUA7NLsFz5Ycoa9qwJ+OhdoPkbh X-Received: by 2002:a05:600c:35c7:b0:3d3:5d0f:6dfc with SMTP id r7-20020a05600c35c700b003d35d0f6dfcmr45837463wmq.30.1673272988854; Mon, 09 Jan 2023 06:03:08 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id u16-20020a05600c00d000b003cf4eac8e80sm13759902wmm.23.2023.01.09.06.03.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Jan 2023 06:03:08 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Havard Skinnemoen , "Edgar E. Iglesias" , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Peter Maydell , Eduardo Habkost , Tyrone Ting Subject: [PATCH 00/14] hw/arm: QOM OBJECT_DECLARE_SIMPLE_TYPE cleanups Date: Mon, 9 Jan 2023 15:02:52 +0100 Message-Id: <20230109140306.23161-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::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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 These patches certainly look as churn, but they are required to be able to update the OBJECT_DECLARE_SIMPLE_TYPE() macro... Except the OMAP related files, the rest seems to have been merged shortly after automatic script conversion from commit 8063396bf3 ("Use OBJECT_DECLARE_SIMPLE_TYPE when possible") was run, so missed the QOM cleanup. So here we go with yet another boring cleanup series. Philippe Mathieu-Daudé (14): hw/arm/pxa: Avoid forward-declaring PXA2xxI2CState hw/gpio/omap_gpio: Add local variable to avoid embedded cast hw/arm/omap: Drop useless casts from void * to pointer hw/gpio/omap_gpio: Use CamelCase for TYPE_OMAP1_GPIO type name hw/gpio/omap_gpio: Use CamelCase for TYPE_OMAP2_GPIO type name hw/intc/omap_intc: Use CamelCase for TYPE_OMAP_INTC type name hw/arm/stellaris: Drop useless casts from void * to pointer hw/arm/stellaris: Use CamelCase for STELLARIS_ADC type name hw/arm/bcm2836: Remove definitions generated by OBJECT_DECLARE_TYPE() hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() hw/misc/sbsa_ec: Rename TYPE_SBSA_EC -> TYPE_SBSA_SECURE_EC hw/misc/sbsa_ec: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() hw/intc/xilinx_intc: Use 'XpsIntc' typedef instead of 'struct xlx_pic' hw/timer/xilinx_timer: Use XpsTimerState instead of 'struct timerblock' hw/arm/bcm2836.c | 9 +-- hw/arm/omap1.c | 115 ++++++++++++++++----------------- hw/arm/omap2.c | 40 ++++++------ hw/arm/omap_sx1.c | 2 +- hw/arm/palm.c | 2 +- hw/arm/stellaris.c | 73 +++++++++++---------- hw/char/omap_uart.c | 7 +- hw/display/omap_dss.c | 15 ++--- hw/display/omap_lcdc.c | 9 ++- hw/dma/omap_dma.c | 15 ++--- hw/gpio/omap_gpio.c | 48 +++++++------- hw/intc/omap_intc.c | 38 +++++------ hw/intc/xilinx_intc.c | 28 ++++---- hw/misc/omap_gpmc.c | 12 ++-- hw/misc/omap_l4.c | 7 +- hw/misc/omap_sdrc.c | 7 +- hw/misc/omap_tap.c | 5 +- hw/misc/sbsa_ec.c | 12 ++-- hw/sd/omap_mmc.c | 9 ++- hw/ssi/omap_spi.c | 7 +- hw/timer/omap_gptimer.c | 22 +++---- hw/timer/omap_synctimer.c | 4 +- hw/timer/xilinx_timer.c | 27 ++++---- include/hw/adc/npcm7xx_adc.h | 7 +- include/hw/arm/npcm7xx.h | 18 ++---- include/hw/arm/omap.h | 24 ++++--- include/hw/arm/pxa.h | 6 +- include/hw/i2c/npcm7xx_smbus.h | 7 +- include/hw/misc/npcm7xx_clk.h | 2 +- include/hw/misc/npcm7xx_gcr.h | 6 +- include/hw/misc/npcm7xx_mft.h | 7 +- include/hw/misc/npcm7xx_pwm.h | 3 +- include/hw/misc/npcm7xx_rng.h | 6 +- include/hw/net/npcm7xx_emc.h | 5 +- include/hw/sd/npcm7xx_sdhci.h | 4 +- 35 files changed, 282 insertions(+), 326 deletions(-) Reviewed-by: Richard Henderson