From patchwork Fri Feb 3 18:08:59 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: 650093 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp971505pva; Fri, 3 Feb 2023 10:10:41 -0800 (PST) X-Google-Smtp-Source: AK7set+O9PofSZN0Wob0YI+oXJUVyYvdSNNyRtIAyxvVsQHgsrCHu2Plk+uF36kJZJm1LW6bBXGT X-Received: by 2002:ac8:5911:0:b0:3b6:2f0d:1925 with SMTP id 17-20020ac85911000000b003b62f0d1925mr21453930qty.64.1675447841315; Fri, 03 Feb 2023 10:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675447841; cv=none; d=google.com; s=arc-20160816; b=tkWKAuSuIAFJSJHiNjWPwD7tZtXAeiDg+h2er5upAMeA6hV5zlTlP2rEPp7o69aC9I PHd++5/ezFfEIo3atAtQbEULRe8GrTRGWiq/08Y+7O04ZzW1rZQvAiWce0orMq/QgAiA EUPuCplXi0AMhK8tmxSBRk3mQ16slYdDGNoOc64Gn4EYOxlQ6ApWFBMfbCc9dGnph8L4 hf6i1z/jEq/tZsP0Cb2tjifmNU4Kep+YWdG3B1cf+5jdYoML7owc59ZVcoAEpEhCecfM bHHQo/FU82AkgDVxFj06G1zOkI9yXmWnN9hKJ4n3TfiAe60wgNw3s1kCpzzpq3iOLTAs s1kA== 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=oxYMqvC2WwLHgUmtCJqkqqMYVUSw0aYIth92XOROakI=; b=Bf61AfRyBKKpopXnNCNVx780yJWcFbWJgGq7Z4OfkctHnHIk4fbwPPVzRUyWaOhepT M4BYgBiWAbvz453nADChjWPC8W7NL9MV4sGE58u2Iqt+Aaq/CmXsXPgG9qbmKsLJkTer M0OYYQgRtDuoa0CkiF8X1TCR11kZeQOIcBZ1C5QHe3GZCPjvJYKqDD608r1mmUUt9y7S Nu3ZtD9bmC5sGy6wtEi4t8PJMBtjj1d/lcKx/eqpP1jd7FVqF7u0ugtV2m7zAZsdElYA PYyuNAxn/3pnYJmUs0+cmH/XyprV1R3DA/kN8eIm68BvURpVCL15DzS4/m+JMbvadF7t 4PZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AIxg0fdT; 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 d15-20020a05622a05cf00b003b9b1a173easi2226562qtb.740.2023.02.03.10.10.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Feb 2023 10:10: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=AIxg0fdT; 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 1pO0VL-00077r-8v; Fri, 03 Feb 2023 13:09:43 -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 1pO0VI-00076Z-BZ for qemu-devel@nongnu.org; Fri, 03 Feb 2023 13:09:40 -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 1pO0VG-0008Dg-E0 for qemu-devel@nongnu.org; Fri, 03 Feb 2023 13:09:40 -0500 Received: by mail-wm1-x336.google.com with SMTP id d4-20020a05600c3ac400b003db1de2aef0so4518582wms.2 for ; Fri, 03 Feb 2023 10:09:38 -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=oxYMqvC2WwLHgUmtCJqkqqMYVUSw0aYIth92XOROakI=; b=AIxg0fdTM3g4GbWU+rbgaYy6MBg9x/HWSj4LwdVg6hkUN5Tk8cpDNIHMsJ18d+0rA5 DZprUxgdCUagbFoOEvwxiWh4gPNFsTDESYZ9/5V1kPRoFjLJ+CRsD+L+9tAMz0G80nif aG05M+Mk0aCLYSRRcxHNwiBuwhQuNeCzLnyVtzd9I5/fxQyS8hz4sSQ/xi8pW034Bi8m m31tIvor7j/KEwDqTUa6CvgSRnLo6eUVoo1h6oLhWVIJDcO3jEJu39wDJIg/dXWrMQzd +6EdkUOPcV/dhI/KhSZ+XDs5MPeB16cwsQ4su1HiebHuaA0DShpYCQt4AJzHIJb8cpfI uDcA== 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=oxYMqvC2WwLHgUmtCJqkqqMYVUSw0aYIth92XOROakI=; b=0KmboyBoa9ABtBcJ8dog+4qk064b2TDcH8o4rEGNdsNnqdiej6hZ1L8U8SJXyaDYgw p6Z4ZOlMeN+aQ5eUEFIP2gnvswliUY7YmCv8LG5fk08HL8W/F1TUrfkcEGeV4SjfPcat CxSHGqRGsHzZgdm/CP9f0ETvcsmpf8GmrrsdeCsme+bxAdKUhltjaqcLdcFdBWHkAaDx gpWXmyKrsOE/vM3YGWAizGVyBn+Ny669/9u8ErrPEooaUYSZnU7kI6mh20AXaWp9Kn6/ tHOBotEvGL1wLaFIh+D2BCTwu1eSfttXjO/7S8OZWyrLUAPgHrHZOGqKnYFBCaokx0Pe JhAA== X-Gm-Message-State: AO0yUKWdKYnWc358z1IIiL+y726aW4Th09E6uXSZTxdbh4fAaBing1f8 PIWZLngKvInCy8RVHBjlJ1n0qgPVCvyBu7xB X-Received: by 2002:a05:600c:225a:b0:3df:12ac:7cc9 with SMTP id a26-20020a05600c225a00b003df12ac7cc9mr9619906wmm.15.1675447776870; Fri, 03 Feb 2023 10:09:36 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id t8-20020a05600c2ac800b003ddc781b1d4sm3126424wme.33.2023.02.03.10.09.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Feb 2023 10:09:36 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Markus Armbruster , Eduardo Habkost , qemu-riscv@nongnu.org, =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= , Gerd Hoffmann Subject: [PATCH 04/19] hw/audio: Set QDev properties using QDev API Date: Fri, 3 Feb 2023 19:08:59 +0100 Message-Id: <20230203180914.49112-5-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230203180914.49112-1-philmd@linaro.org> References: <20230203180914.49112-1-philmd@linaro.org> 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 No need to use the low-level QOM API when an object inherits from QDev. Directly use the QDev API to set its properties. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/audio/pcspk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/audio/pcspk.h b/include/hw/audio/pcspk.h index 9506179587..e18ca08fa0 100644 --- a/include/hw/audio/pcspk.h +++ b/include/hw/audio/pcspk.h @@ -33,7 +33,7 @@ static inline void pcspk_init(ISADevice *isadev, ISABus *bus, ISADevice *pit) { - object_property_set_link(OBJECT(isadev), "pit", OBJECT(pit), NULL); + qdev_prop_set_link(DEVICE(isadev), "pit", OBJECT(pit)); isa_realize_and_unref(isadev, bus, &error_fatal); }