From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2EF7AC77B7A for ; Tue, 23 May 2023 06:13:03 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1LFv-0008VU-Ee; Tue, 23 May 2023 02:12:28 -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 1q1LFl-0008SP-Rw for qemu-devel@nongnu.org; Tue, 23 May 2023 02:12:14 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1LFk-0005Fg-E9 for qemu-devel@nongnu.org; Tue, 23 May 2023 02:12:13 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f41d087a84so30990285e9.1 for ; Mon, 22 May 2023 23:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684822330; x=1687414330; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dVduBQdrAQ/JitmbuXJOwhpd3wkRFgWVzK14sta4Hho=; b=vCePpB1tAOUKUDaavDFVn3RTGCYQA7+ia8SH5XeZXmCUbdkl6Pc//7WTUCT3CmJmXs 7ARwdmqLBetrfYsaHz6zCcc+OCTVaN/U1crtM1KYPkTTa4cUVY47Sw2ueYAQRooVTV54 wqUs7uVdM1CFGDnTV7VGzrD3xZA1fiH3gfzH6ikMEUE5Q2Clon1nSVSuH1p8HUwvOnp1 nwxhMJlgdAj6Ga31jPH3/4uSxGX202lbQmNhR9fjKzQRUSnip0VUGTkyfam2b22c9wKj twXR3bBKjZyJlo7xtfa8frQPjD9pZNCfADZBm8ipbVioBDWF48eigM2ZTk9T3SVtpWyW K1NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684822330; x=1687414330; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dVduBQdrAQ/JitmbuXJOwhpd3wkRFgWVzK14sta4Hho=; b=BfhEp9xmx6o5W3sdRmpPGPcMvXpB3UrziD5A2KdUfqB5velwkfKsbCw8kMglO3/Emo 1EFDcl17qwP7v1QS77JY8WxwOqo/qW7KX0THmNLyR4hRt5lYbztULSSCeaRUQrO6S8/f bhhT5CMD/WbeIpiroMjWsWWoYBsjSy8cjWbet0n2OYbR3xEWAjAhjjCAdpAmaNuMnlrp iLe6YXVS3aiNPh9t56XtHXlSxpFgYRMnF0e+FBsI0+yJnD/XB59otb+zfmOUapV8q28f FKojncCbHe2aeKC4a25eHjO7vKw1FOMbkeMUkbR8hO8SQvuvZus3tBTaXKgzemirj+xc URww== X-Gm-Message-State: AC+VfDyOrBwvC1sZLwwR40LSGy7fGO/bz3yt9CU6HhgBelIfF55fagJF J/A+PxkSdhfqi2fn33Qkc9Nk/9iJblbgxHBKjtg= X-Google-Smtp-Source: ACHHUZ5NYcIuw2v2H/oXDL7QaBofJ/TuFZA5JC1GbnEyNApzUjEMsEuuT/V58BzXAfTwoZr0wJLkcw== X-Received: by 2002:a05:600c:2256:b0:3f1:7848:6740 with SMTP id a22-20020a05600c225600b003f178486740mr9184172wmm.8.1684822330351; Mon, 22 May 2023 23:12:10 -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 h19-20020a05600c28d300b003f427cba193sm13674971wmd.41.2023.05.22.23.12.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 22 May 2023 23:12:09 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-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=20Mathieu-Daud=C3=A9?= Subject: [PATCH 0/4] hw: Minor simplifications using proper QOM getter macros Date: Tue, 23 May 2023 08:12:03 +0200 Message-Id: <20230523061207.48818-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Enforce QOM style. Besides, using the proper QOM macros slightly simplifies the code. Philippe Mathieu-Daudé (4): hw/core/cpu: Simplify realize() using MACHINE_GET_CLASS() macro hw/i386/microvm: Simplify using object_dynamic_cast() hw/pci/pci: Simplify pci_bar_address() using MACHINE_GET_CLASS() macro hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro hw/core/cpu-common.c | 3 +-- hw/i386/microvm.c | 3 +-- hw/pci/pci.c | 4 +--- hw/usb/hcd-ehci-pci.c | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) -- 2.38.1