From patchwork Tue May 23 06:12:07 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: 684886 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1549238wrt; Mon, 22 May 2023 23:14:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5INV33EYD66Fh+4WVBFnzf7Pw0LyrMvZfvIjocX/51IhLTRtvGE79LOi2vPq+IxF/CdSkw X-Received: by 2002:ac8:5a44:0:b0:3f3:669f:473c with SMTP id o4-20020ac85a44000000b003f3669f473cmr19624814qta.49.1684822448293; Mon, 22 May 2023 23:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684822448; cv=none; d=google.com; s=arc-20160816; b=YA85xVA525sLJEwtwZ/KTRaqtM7KbgAUgAQSvvKSa15uvl+7f61/+wu+KdQe+1J5Js GrzM/hySk2src8FEj+IzRf9VdTgA+3oe7qg9AieD5Sq8nim6OBdv3nq/Rg10b0Q6dWv3 FabuqraPbi+8IFuwcx0p6q3YXdJazw3Gb+a0hivseN0uZ4LGmbYhjzFGWBsD1nb6HF2Q 41nUdW4vBz4Rdo30GkS1nGHhkusWsJoMjdsUa6l/T80MwWgcoWvEcDRLcyRTcL3Mr4pO dK0BUbfeh0yLKlYCLGzmKN+FFcQ/pE+AihwWvg8oetWnncUF/qaD1hB20Pcsj4l7nibX dEBA== 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=vkILo9SwujHxUBUp1ZR6EEs4lszUfK1/I8whdwDZtw4=; b=gBbb0bM3auwySayIe9OmNQjNfhzK5f3dXw1+WKib1cIqwlMsnh00DeD+GD7x+4elPU 5ynfS/4mafYHG0/dbqIEIsQ9zjlvHXu+4/FxCSJ78geUPSA/L+c/07QfVcPwjg/GLc+M KrwS91V0ln1UKVnTz8yjQIHC8p+ElzTgkxR10p53W9oob8Ydj4+UO1jE6VtZs2P/7nGf xlMfZvkBLwEcg4GLY+DzDwDuG7LZ2nI0p9KrHbvlyFv+KwxQDGQX0e+clK7NsaAOSTGM ctotWUzsvUx8nJAulfvZP3Q/WBf1yO2KyQIwrl+maPEIznn2AHKZjeN4bPrpLENXx60J MHIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eYUkRmIu; 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 n20-20020a05622a041400b003f6b7262df3si1374273qtx.298.2023.05.22.23.14.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 May 2023 23:14:08 -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=eYUkRmIu; 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 1q1LGW-0000LQ-FE; Tue, 23 May 2023 02:13:00 -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 1q1LG8-0000A5-5w for qemu-devel@nongnu.org; Tue, 23 May 2023 02:12:37 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1LG6-0005I7-Jy for qemu-devel@nongnu.org; Tue, 23 May 2023 02:12:35 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f608074b50so12296685e9.0 for ; Mon, 22 May 2023 23:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684822353; x=1687414353; 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=vkILo9SwujHxUBUp1ZR6EEs4lszUfK1/I8whdwDZtw4=; b=eYUkRmIuVeopkfcJ9LVh4LhwHPZS+6bZ4svQd24hcus0NHav5uY6o2S+goIp7tIdlI j4+v3OzHkpE427LcopqtoiiOmOGDJzUd2xLmnQI/jJROVLCBIpt0O8X1yUDvvFursZJd 5AbleFBw3yyRURMHHya3sRBMnIyZDNQglIqpx+TNh1EYc+njTv3njw3FVl3NU4HYvGta UdjUFryrSiMvlbh8LXDkpGBA6u/MSO0TDQNP3nAmZJxeTyZGHpeA5SSjh+y4key518cu t5e3eG6Ms0IEVmQfp5Wg9obJFJIYP9lRYZYXV7BWX25SEBLE3xVqV+TaKeM7JIWfLXJ7 A6cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684822353; x=1687414353; 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=vkILo9SwujHxUBUp1ZR6EEs4lszUfK1/I8whdwDZtw4=; b=BbbMR/aHvE0i+Clj7gORiTR56X8cBh0M0HWEm0wke2jFmM483zMBUBqA+P1g/Xeb3N 5vn8JyGgpCO/fEYHQHZuVSn/Xupthla26pkb9nikkZlLKOjZZ77qRT5toONMAA4Rz+m1 XAuBLkGB57Ft36+RTBv7pbRqNeBWSYbsu1NtPKcxX4DC2wXr6H95ssqRMW9fNoZWicxW VPChUaCjrbQBL3IqP0wDK1abUH/73S/XdlqUue98qDOnoKV5Si6mlNr1VdurA6Y2/vpX Z+DT/M+rBeJNbj3UDUpLRMClcQ0d4hz63hf4jF2E8ftSTASvgns8DQKWGwWR0aZm+att 1S+A== X-Gm-Message-State: AC+VfDxBtBIQN8Y3IUjHDPlBr9iFu4y3EOm9gtX4GMIp1U7N+152wPGA UvhEfqvc5WcGiX0HpWMgBcKQj1pvcyNug9MWjww= X-Received: by 2002:a7b:c393:0:b0:3f6:a66:a36d with SMTP id s19-20020a7bc393000000b003f60a66a36dmr860850wmj.10.1684822352954; Mon, 22 May 2023 23:12:32 -0700 (PDT) Received: from localhost.localdomain (vil69-h02-176-184-48-94.dsl.sta.abo.bbox.fr. [176.184.48.94]) by smtp.gmail.com with ESMTPSA id k21-20020a7bc315000000b003f60a9ccd34sm1074830wmj.37.2023.05.22.23.12.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 22 May 2023 23:12:32 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Sergio Lopez , "Michael S. Tsirkin" , Eduardo Habkost , qemu-trivial@nongnu.org, Richard Henderson , Gerd Hoffmann , Marcel Apfelbaum , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= Subject: [PATCH 4/4] hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro Date: Tue, 23 May 2023 08:12:07 +0200 Message-Id: <20230523061207.48818-5-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230523061207.48818-1-philmd@linaro.org> References: <20230523061207.48818-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/usb/hcd-ehci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c index 4c37c8e227..345444a573 100644 --- a/hw/usb/hcd-ehci-pci.c +++ b/hw/usb/hcd-ehci-pci.c @@ -74,7 +74,7 @@ static void usb_ehci_pci_realize(PCIDevice *dev, Error **errp) static void usb_ehci_pci_init(Object *obj) { - DeviceClass *dc = OBJECT_GET_CLASS(DeviceClass, obj, TYPE_DEVICE); + DeviceClass *dc = DEVICE_GET_CLASS(obj); EHCIPCIState *i = PCI_EHCI(obj); EHCIState *s = &i->ehci;