From patchwork Sat Jun 10 06:57:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 691160 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp1172410wru; Sat, 10 Jun 2023 00:00:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vgS0HEW6MhwUTmvfpCop0Gg//Oq3+b2NWKftON0N4dZDrcHUrrgmIEbybUnslYVT76uL1 X-Received: by 2002:a05:620a:2441:b0:75b:23a1:3632 with SMTP id h1-20020a05620a244100b0075b23a13632mr4712088qkn.67.1686380400472; Sat, 10 Jun 2023 00:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686380400; cv=none; d=google.com; s=arc-20160816; b=b4/0ZOii3abD/BK+1yUdvHjL8qSmO5QlLtEVv22unX9+FVyg/RvYHqTYD2zvDiNEzc 9+WmgvIsbGGKfRWt61+x92qrhxiaByUFRF/hDtiijrzdhHJHbjSNYeemLah5dZLAP8BO XnBk0zKLKaMz6KL9ctOtuSN4yfYguCqBpEugEkGvLMwT2NXUqnFrJ9DASKRyCEsFsana 3fOhN705Y09uStYRqjSkHzw7pHUo9s0uhqGJnjTM1KJVkXrDQHN7NU6dSdYMhr5+/1x+ twnzb8LnO/GDrKWP0SgDVyU2FYL8rcxWaVzQs7WXjX/VkXRsI/HwTzwfLkbjGN3BvyBm 4WdQ== 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; bh=2NA5+uyI3mdTQVFukklYEDJFqzbQK8JrOdvYp/So6CM=; b=fZfmNM2P08kMKb382ItBUnyO12l9ghsK54VLAn96gCzZuF3p0ILv2OWU5g98BKDqwk 75SUxnJZvpCQNa1gjk8ZctN0giHJ0E4dP2/qxLc4Mu3mPpegBCSpTH243gByV0YqnW8P YMvT0owLhpxFDu6c8AJLq+RUSQ97x4Ewkka9DTD0il77KbTjoXdro0RE1b2Fb4CpgPME fiwxmHHBsGCtrF/rVqrOISCk7UH6KRl3mb1jDgT/+HoW25If9YK2xEXvcbRuOBj7fmHc uAIlZDsS2Feurh/OOH71nIbUc9yN7tfcLDmulCDyW0nVVzvUBRQnumH/Z0Zj30g8UJD0 UNUA== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id pj1-20020a05620a1d8100b0075cf5c73f94si3124746qkn.772.2023.06.10.00.00.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jun 2023 00:00:00 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7sYq-0002yQ-Cn; Sat, 10 Jun 2023 02:58:56 -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 1q7sYf-0002oj-Co; Sat, 10 Jun 2023 02:58:47 -0400 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7sYd-0005xT-Pt; Sat, 10 Jun 2023 02:58:45 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 6D38ABE2B; Sat, 10 Jun 2023 09:58:01 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id E9CA9B298; Sat, 10 Jun 2023 09:58:00 +0300 (MSK) Received: (nullmailer pid 1107526 invoked by uid 1000); Sat, 10 Jun 2023 06:57:58 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-trivial@nongnu.org, Richard Henderson , Michael Tokarev Subject: [PULL 11/16] hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro Date: Sat, 10 Jun 2023 09:57:49 +0300 Message-Id: <4c030dd00f617b432524f7f9627192cb9b328bcb.1686379708.git.mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Michael Tokarev --- 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;