From patchwork Tue Jul 2 14:08:39 2024 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: 809123 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp229656wru; Tue, 2 Jul 2024 07:09:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXvLjtVpw9cTV9XFjky5KakE4ZJIbBhNEzjOh/A7Jl7JpNh28BoXDVg/fsA+pbTgH+mQTEN8ddL07RiCvhXe3tr X-Google-Smtp-Source: AGHT+IEWtSjwSW8fw5LcIwkgEqOP7YD4pf20+kaa3GAaPT1Ef8/L/VtG3yKODlPZPUH2j07ZxTpW X-Received: by 2002:ac8:7d0d:0:b0:440:5cea:d0fe with SMTP id d75a77b69052e-44662ea3ad2mr112219751cf.64.1719929374576; Tue, 02 Jul 2024 07:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719929374; cv=none; d=google.com; s=arc-20160816; b=OteQZPk/bbZrvo0jwIrF6AI0fQ60DRWOxWfEX+uWNPc5cIkKhNclwA8qie9bKqgq8e yc8QSWpf4Rm2HpErkokCbeIA2ua2IAgWI+piBChZtvjhWT0jGMZHOBbSUv/k/2esp8Zu AXexIPn4Q5JVSm7xKihH56QxkphoKTFhCA157WWKK6WUFhkHMrCLMVn7JhHGXjYQX9oU oTOfJI644Ciq/HbbIJHLVl3EgD8+Y9tMFsowz/WUP/t1GlMazU3ZCdYjbv520/MQD9tl CwSTnYiQdz8rvhYUU0Px3OI6fWaIo0xhNihUubeTx0sPWZIOjVN5N7OIs2U6mQb+uutO CykA== 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=NKQMcV9LKaA6zhhnGkX4WVr3MTh1gxn1oQ7jR99yzBA=; fh=Ltmo1M0cbBlwZZT9wU9gQIKc0R/WeSNL65apJZOLKjs=; b=V2PtF/2Tz4ktR696/5a4cSZtzSZb2AjaPu0ukdlnRhY2uYOjGVTnD6vx+GZ/1gRLCR WMZUeQrJESDT8vO47KBaBqArSEIaGuNC/bsc4msC22xdmXVxVPq24bSz74Du8sUlbT6K D3w4JWftTCj7cRp55pbP1Q6+l7+C5zHCuOApnFi8IqJQ3yNZ5rDTvYtku3Biz9LXbrpd +rh05El7HNmq6FK4jRYidhAiLVHCAoBL4Zx2UTBpkZYS9YRrykHwRZI8eC8LRynWNTsN j4dLrmzPrfWTwrkLeeTsQN3zyG7PfDV6kdCu3BVRCUDKVsenvnznNhRF7MTpE8Lp+ibo DoLA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kWG11Kj/"; 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 d75a77b69052e-446514da600si103847681cf.705.2024.07.02.07.09.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jul 2024 07:09:34 -0700 (PDT) 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="kWG11Kj/"; 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 1sOeCF-0006P9-5R; Tue, 02 Jul 2024 10:09:28 -0400 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 1sOeBr-0005QC-07 for qemu-devel@nongnu.org; Tue, 02 Jul 2024 10:09:04 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOeBj-0008G7-Nb for qemu-devel@nongnu.org; Tue, 02 Jul 2024 10:09:02 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-36743a79dceso3070463f8f.0 for ; Tue, 02 Jul 2024 07:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719929334; x=1720534134; darn=nongnu.org; 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=NKQMcV9LKaA6zhhnGkX4WVr3MTh1gxn1oQ7jR99yzBA=; b=kWG11Kj/eIWq6GJRDSrARgMtsPrmErcJIscuQlk6M7CZbb3we9YQ/ohgVEgoXbCJ16 8RLSNxIzsvLCRBSSRrIrwkpzIVGIxpvW4AWI3x9RE8pj+0LroHmomUxpVIjO9kwgBC6N 0BgmICic4Avjw7hgrGVvEDlubtsXLLgoohiPusf8qV8Ss7b9+UpOuxWNo5OE91PV8AwP 5kKYdhkmONWCTkCfVwRo3+UjjPldiJHGhVk45ppYWG91etfdeCQDDGLftFvBq6yJ8nsV r+oc4H9jFCADH5EsOnpFP+eVy1DiUPs3WiN36duzaMp7mNblLxEUCYmfK17FpgyHyzLi H0ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719929334; x=1720534134; 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=NKQMcV9LKaA6zhhnGkX4WVr3MTh1gxn1oQ7jR99yzBA=; b=Fz5k7ldeLpH2GdlC9UbBY4QaNYVnUrdSNY26IQKGi/V8+QR7oH32UoTtF5iQQw1itD tPe2X+EFtFI8yL7ziTKjtDjtrzl6fKwBYsleuZuPS9zfqyWFi4AhUOkNYjqpDbSVwgAW 7wNKtPfvAI1IguSlgyNY1QddKCit+DUpaDgfaz+V6IT5NZu/Og64h5fLiqoeFvjOjP65 a8vZCnPxGsX6nRLm8L66s+Cnvd1xwojannvjJF7aLs4sCXH6osESVYxcejnIjgExd7gQ saDvK+1WlamD0hI8Sr/Y+0j+5yFmb8c5++HCyAuOkMUOx2eN7wsS4psA5r5fojABWGZn FntQ== X-Gm-Message-State: AOJu0Yzm9SI5b835KLoYufTD907mVnS0nQ3Vf701tv6wZ3w3G15xotv9 CAU714z/7lctn7xT98WzBuxG8rjft51CnU6jkmwF39ES4H03/YIZOL4R6LwkmsB5VbvDzJFz/PD o X-Received: by 2002:a5d:4282:0:b0:367:89b0:f584 with SMTP id ffacd0b85a97d-36789b0f6demr1274520f8f.11.1719929333915; Tue, 02 Jul 2024 07:08:53 -0700 (PDT) Received: from m1x-phil.lan ([176.187.209.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3675a0d8cd8sm13305323f8f.27.2024.07.02.07.08.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 02 Jul 2024 07:08:53 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Tyrone Ting , Paolo Bonzini , Hao Wu , Thomas Huth , Shengtan Mao , Chris Rauer , Joel Stanley , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Sai Pavan Boddu , Laurent Vivier , Luc Michel , Bin Meng , qemu-arm@nongnu.org, qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Patrick Venture Subject: [PATCH 1/4] hw/sd/npcm7xx_sdhci: Use TYPE_SYSBUS_SDHCI definition Date: Tue, 2 Jul 2024 16:08:39 +0200 Message-ID: <20240702140842.54242-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240702140842.54242-1-philmd@linaro.org> References: <20240702140842.54242-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 Use the macro instead of two explicit string literals. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater --- hw/sd/npcm7xx_sdhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/sd/npcm7xx_sdhci.c b/hw/sd/npcm7xx_sdhci.c index e93dab8dbd..fb51821e11 100644 --- a/hw/sd/npcm7xx_sdhci.c +++ b/hw/sd/npcm7xx_sdhci.c @@ -16,6 +16,7 @@ #include "qemu/osdep.h" +#include "hw/sd/sdhci.h" #include "hw/sd/npcm7xx_sdhci.h" #include "migration/vmstate.h" #include "sdhci-internal.h" @@ -162,7 +163,7 @@ static void npcm7xx_sdhci_instance_init(Object *obj) { NPCM7xxSDHCIState *s = NPCM7XX_SDHCI(obj); - object_initialize_child(OBJECT(s), "generic-sdhci", &s->sdhci, + object_initialize_child(OBJECT(s), TYPE_SYSBUS_SDHCI, &s->sdhci, TYPE_SYSBUS_SDHCI); }