From patchwork Mon Feb 20 13:18:35 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: 655089 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcd:0:0:0:0:0 with SMTP id e13csp1390780wrc; Mon, 20 Feb 2023 05:20:23 -0800 (PST) X-Google-Smtp-Source: AK7set9X7j+Y2hjnQ2CU77lAYp9U7C/w5R4YcRQSBMqmqQ5DzjY4ZU64AHS8sKjoybj8MM87K55I X-Received: by 2002:a05:622a:48b:b0:3b8:118d:ad86 with SMTP id p11-20020a05622a048b00b003b8118dad86mr1018556qtx.21.1676899223380; Mon, 20 Feb 2023 05:20:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676899223; cv=none; d=google.com; s=arc-20160816; b=zIJz87tHzA9bInEylUdkMBRWN3R2Emmsqjrpelrfsn4wmniTVUcq7wjTGJgGt7ewfx f5JCHiJzD+vslLb5fqKtGEF3r2OZ2zwfNGFSbV+WyAVlt6XVKqZOwoIM5ZLJ9/0q5WXU XuMc9xEO9OjOVaj3e7ewBkLrQl3noCLLuogTWRxBED01L6t9wjDCjws+xrSsda5JoTPw HqkaFwVFf5eu4//ENSL6XyxcK5cDKd4jAnFGxko4fyBT++bm0GJOhnPSdZkXlhj2s2h0 np9OC6f5vsDK4+y14ZvZeRrb+Uv1AHu9DZG0zWNmGV2Gnl8CnwiDUmQz6289IsyrzSDQ jeFQ== 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=IN0WAsB9L5CFqp3vtKSX1KHSdW1kdU+eQCKL82nmG4w=; b=CoDemJYwrbpQw+psiHFjHy8qAzqs94KgMgsUNA5SQHi2uLo6vKgluT9RCZ1Poge31e h14mqfX3cW0b31neFTl+D1EyUcsy/skmyEAw5G6ZJqL3ThQYto4MKDkJy0zpjQJaD7Dw i9fk0Hgg8noNmEfFa+2YMBAFVKz8xkgbiwxU80pa2ybuRQ5vvZlw1MI3ocnirh5IK2PE CR0GhDrKNhDbLqlf/4ITMsaIu5SC5G0DwgP6Vyn/FutT4pr0Bo6mwBmM1+3fe3vp6kJk orkzL3w12HCROzb7K/UFUYM/8OVjwjoVDZQhhwRoELKKXRHWj52m8Em+of5zi200oIt7 Vn1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Cbc/reFe"; 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 j15-20020a05622a038f00b003b9e33f60cdsi9817157qtx.668.2023.02.20.05.20.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Feb 2023 05:20: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="Cbc/reFe"; 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 1pU64O-0002Dq-7w; Mon, 20 Feb 2023 08:19:04 -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 1pU64N-0002DZ-7K for qemu-devel@nongnu.org; Mon, 20 Feb 2023 08:19:03 -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 1pU64K-00073w-6I for qemu-devel@nongnu.org; Mon, 20 Feb 2023 08:19:02 -0500 Received: by mail-wm1-x333.google.com with SMTP id o14so1260049wms.1 for ; Mon, 20 Feb 2023 05:18:59 -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=IN0WAsB9L5CFqp3vtKSX1KHSdW1kdU+eQCKL82nmG4w=; b=Cbc/reFexjbdSsRLAjHHhGGkImZERRqiQJl8SZ3EcLskeFj4+286UXKUpEX4ebq1dS UNyxbwM1vURGydatiX2yZf9EsxcoerHHj6UEqsUY3Chtp7iJflIW/BsGQo+AGekcIzQ0 4jvnun1IAg5aFqkrdrJWqPLi1Dx0scXiaxAnLZrx9So3al++2YoklM0IZ3df6Pu5yO2m UyzVhTnNLYdplrPyNbDZwk6HfW/tN4vkeb7InvajlqMqWboDEv/bBH0ziMvKnyvKbftW BP1zOZKozLrBpH4ms/8hjxpdvGTDwNMCNINv8z/X727Yskth8Swr/EQNvwcSeP0hpL2X Pj+Q== 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=IN0WAsB9L5CFqp3vtKSX1KHSdW1kdU+eQCKL82nmG4w=; b=2Mr/4EcWQy15OUBFbrbjYu8N3PkpXlO2jh50zkbuvF9rbmRb+vSPIAzZX1UPeopN6M tFOaOEeqRSIBXa8Vfm/Ws/4MUTw+6MvXkyA6X9+axj9JKzj+eK4Kd5IpD7Og57nHVpSE V49VE5sffL/kxHB9RPmOR+KqBjcXXEom9wI5TDxPxNCCFs+y2gv3/k/KC25WIQeLX6sU PVy7On2Cw59Q1myAhOeb3XJhu/SY/IsmOIksrHYOGJxajaHb/luFxTYftiPAJXhUeQNG C1cQelbOoM33P+Y+CPdMocfCDnbhzkPvswATqSjUZ82ofEDbvDAhMZZ5T7YNcR6Ohc/4 CdlA== X-Gm-Message-State: AO0yUKWsKU6berIZWXGn7+dBbD8QqXFfSHLIAQWJh1HS9u+6tNjK3NgG Wa64Gfjul6d1ardqkme7oQ/fokIxvtxu7qgU X-Received: by 2002:a05:600c:708:b0:3dc:1687:9ba2 with SMTP id i8-20020a05600c070800b003dc16879ba2mr5547678wmn.35.1676899138305; Mon, 20 Feb 2023 05:18:58 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id c6-20020a05600c0ac600b003dc434b39c7sm1241768wmr.0.2023.02.20.05.18.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 20 Feb 2023 05:18:57 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , qemu-ppc@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , =?utf-8?q?Herv=C3=A9_Poussineau?= , Richard Henderson , Markus Armbruster , Gerd Hoffmann , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 3/5] hw/audio/es1370: Replace container_of() by ES1370() QOM cast macro Date: Mon, 20 Feb 2023 14:18:35 +0100 Message-Id: <20230220131837.26292-4-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230220131837.26292-1-philmd@linaro.org> References: <20230220131837.26292-1-philmd@linaro.org> 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=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 --- 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); }