From patchwork Mon Feb 27 14:01:19 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: 657000 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2370415wrb; Mon, 27 Feb 2023 06:08:23 -0800 (PST) X-Google-Smtp-Source: AK7set8gIdn+Sff9JlunWNEX5uEeLqFqH7q4HzUGuLpnNBK1UOm8Y84RdMuUM3PAt4WmreFofxw9 X-Received: by 2002:a05:6214:e45:b0:573:c1d9:df40 with SMTP id o5-20020a0562140e4500b00573c1d9df40mr14386253qvc.49.1677506903039; Mon, 27 Feb 2023 06:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677506903; cv=none; d=google.com; s=arc-20160816; b=JFDNLUVQ4rirkwHhPhuima4WywmYFHKxG5wHckeFm5WVIHRoPikcuKDq9kYW+BWb/O RftYJADiphj1rWyq1DibO/y4gGhpibhPmFoPb0RRYsbHgtTDP3ISN3LvviL5r6KEVGlg G1tnKGrfyv665uHPCXxVa8aelx+++LiJjUGohLazNPoanMCT5X8E/gc3XURylchcpnPe dEygpjJhCeSUez+Mzu8owdVNab26euBYQac21D+bEFRJV42VrXC+/DonN85Y+L75is45 a2HYa538E04/1R9yVs7lkJ5kdXRPBrTQff5L27Ua1vfEPDotSPgk+z8cHJAsFPKHVqDT 94Yw== 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:to:from :dkim-signature; bh=xWSTUmb++2mGiogMvXbqJJocrCykF9OSc1ggtSDBGQk=; b=EWyaEaJ+MqwoqF0eLZJF6B1lX/m5IkMipge+xb7jcZ2Hjy/m5OCyWHQDxUw3x/QCD1 T42xMT1xjztpIC8KHbgaXMDAgbonndz+x+chI1zuEjgiyFdHUdyHzf/+5BtdsMFIhgDy NzpJ/Xy9Ut0RilZDCDN1gZOTbZoo3JNQiyBKGwq1NocD5l/mlZKOzkGChuRxe2cLnE1L oLMlNpF1VB/3yiUwJxJNRMg7ZBBz6Ur1lCnrCOmlcFflJOKFc+pReMcUm6+Jf0CbYXCf LpqAXninxvD9zY0ZptjZ9ak/6YXuX37kGOuI6gmiUg2R4ZHvuulijl84R+CiC+n3q9DX 0FrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KVWgdG2k; 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 p1-20020a0ccb81000000b0056ea83d60f7si6438325qvk.361.2023.02.27.06.08.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:08:23 -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=KVWgdG2k; 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 1pWeAa-0001gr-VT; Mon, 27 Feb 2023 09:08: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 1pWeAa-0001aN-2k for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:08:00 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWeAY-0000FS-9K for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:07:59 -0500 Received: by mail-wr1-x430.google.com with SMTP id l25so6371285wrb.3 for ; Mon, 27 Feb 2023 06:07:57 -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:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xWSTUmb++2mGiogMvXbqJJocrCykF9OSc1ggtSDBGQk=; b=KVWgdG2kE24e/aar+GrSettzPiMGN9m0BA3Gdu6FAbuk/+58aSiuz7ZnrGWtfDa8Lz OXLVQNqNnuMhvaH9kRaPa7eB0gUrUHXunYIEircwNPJtSbhx34kN6XyIGKPMREsYcVdo sbfR8WIM4obmm1wTaGV6EF+JUmTwVd5o7432loFWelGW/PUQrqT1v8J8mxR6b9reOHl+ p4xNHwrY5Kx55hRC90eQsB6gPB3kpBTCWtx9ssTUqjcNJoa9DNS/ugRMBnjK9I1LhyF8 QhgOwdQc4KLl5gIVSOjWo9FXx2Z3N8XvcvpjhU+/8ZX+NIkQYA5SGmsFaX0Sl+17hTpW 6XNw== 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xWSTUmb++2mGiogMvXbqJJocrCykF9OSc1ggtSDBGQk=; b=zu9IJPJaq1vQF0wYdmg7s6a1Uso+C5iAr/iAMeJbifkEXeHjzK1t6qHRCYBuhdLaIb +2EVwMU+63otXpJFZ75XtMJf/owFZwKhQL4fCoiSVJTnf/w6U+XiUaH0TEPgaQlMsOHy Gi6OL3QMh8eMERkG0TvWzYtQfFeZ7Mb1xohWpzxRMf47TE8r1Luld47l7HD5aq1yl51a +ODD3Svj8AgTd9vDE6Ah5ZKTZtpyiexJxtIYW1qYNly7n06QQfZJU7KMoFnXVK2fCPQp 2uzUVKi6nZFrkBXA11uIxZpl7VJrq8g044Vts1ZyDXXlBxcVci5zCHbP3Y0tzpsnhmC7 OJkQ== X-Gm-Message-State: AO0yUKU6llbVBArp8wnPRLJZq/O5IWTi7UfLVYHkWMwmNxU3U/NDOInJ aUBGM3lsWGAKUubRTPc/e2J0Ff9VLMaxvUaD X-Received: by 2002:adf:d089:0:b0:2cc:4dd4:b7f7 with SMTP id y9-20020adfd089000000b002cc4dd4b7f7mr932333wrh.63.1677506877330; Mon, 27 Feb 2023 06:07:57 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id a14-20020a5d4d4e000000b002c57475c375sm7169011wru.110.2023.02.27.06.07.56 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:07:56 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 072/126] hw/audio/es1370: Replace container_of() by ES1370() QOM cast macro Date: Mon, 27 Feb 2023 15:01:19 +0100 Message-Id: <20230227140213.35084-63-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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=ham 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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230220131837.26292-4-philmd@linaro.org> --- hw/audio/es1370.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c index ea76c9a734..4f738a0ad8 100644 --- a/hw/audio/es1370.c +++ b/hw/audio/es1370.c @@ -843,7 +843,8 @@ static const VMStateDescription vmstate_es1370 = { static void es1370_on_reset(DeviceState *dev) { - ES1370State *s = container_of(dev, ES1370State, dev.qdev); + ES1370State *s = ES1370(dev); + es1370_reset (s); }