Message ID | 20241105224727.53059-23-philmd@linaro.org |
---|---|
State | Accepted |
Commit | c267da0e271947d59db9524a3e51fdfd860ef7ef |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp239903wru; Tue, 5 Nov 2024 14:49:44 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW9UuMOvLrUJYCP1WqVX6soDuBOBgQ2lKJBiDlpSc3MZh2H5iEj88kbeZPWwSavc/1mzQEvPg==@linaro.org X-Google-Smtp-Source: AGHT+IGjBMnA21vyCjJ9SIdzF2L/kmSCQJ0W5ioFHOxGI8KzkGp6qfRbXXVMeINrqysSxieLexuM X-Received: by 2002:a05:620a:2410:b0:7a9:abee:992 with SMTP id af79cd13be357-7b193f4d8e8mr5386245685a.50.1730846983993; Tue, 05 Nov 2024 14:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730846983; cv=none; d=google.com; s=arc-20240605; b=TMxQ7yjmntiHguHkK5AqoTzqFN/9UGK6f9uoYilgBgmh1MHhee7+la5abhIkaLWCWi xf4/6HRntKQmqccWXJp/bsHD4WFcM+h9RZgml8C47m4l2fa4CJlvTQML8plvRRc4dBZq mW17oHS5+1wh+vtLBKhKhwIkT+mEtsdgRq4yElCxeUjrWRjGr0mx8LHCscz07epuK9xa K/gmZfBtTxTl1U+PRWoM+ymBy4FMgCKvfQewTJE7ANkSkgqA5RrJSjsHasrSAuPJ6rYT It445a+jGcyjZ2P7gxeOdOXNeZVEgfuOBK9kOefebfdFxC+7nE5gK8XB+sFLES4+9aK3 mP3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=14SbIx3o26YQ4yyKbflKXIgXTVgVzW1mc5iHdybl3Tg=; fh=AUbIe/x05OB54MpDx0J1ZtOu3YJ9qKm4HFGYPvj71BQ=; b=GQLe6U+r4e9gye2Dcprdi1jRktu7xRsbgDI7578gZFpJFRvs2VVIm98VPI4/0w+TJJ AQPOImsn7yWesj+comkNTUyh3syolXCymhWWhAU+p4Tmdmy85zFDxgdNm5ebrdX051a6 088JW6ztpWv5Shcg5RgucaplTPS2CeI4iYAqNGhWKvyFRcnb8m/WAi8TJ0e6C44vZd6b yRbwLMdn2i2ZOBoIwTi+hqR3hquMrkozJAa8jH5k8cX1maoMgxzmyGAYqzNB3Rd2RmFF +h0EjBGrpgsIrDK9EmxB8MyLtA5XWUwAG4XWrdTkssn6v5oOyPxixtsbSkX0N9SYjY9z 3VPw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DXtdmUIi; 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; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b2f3a9d16fsi1564365385a.452.2024.11.05.14.49.43 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Nov 2024 14:49:43 -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=DXtdmUIi; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1t8SMj-0000Ay-2T; Tue, 05 Nov 2024 17:49:37 -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 <philmd@linaro.org>) id 1t8SMd-0007ye-D4 for qemu-devel@nongnu.org; Tue, 05 Nov 2024 17:49:31 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1t8SMb-0004Pu-Qm for qemu-devel@nongnu.org; Tue, 05 Nov 2024 17:49:31 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-431695fa98bso47258595e9.3 for <qemu-devel@nongnu.org>; Tue, 05 Nov 2024 14:49:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730846968; x=1731451768; darn=nongnu.org; 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=14SbIx3o26YQ4yyKbflKXIgXTVgVzW1mc5iHdybl3Tg=; b=DXtdmUIiC+O0+3wktHSyAFZj19s1Uw5X292qQw/4bQ094OLpnvSBEyj4ex/73TbpDE +A3OZhQTu8DHy3vgXbPL2rAZppxycuoiezSdEqCiybiuGJTxfsCVhiPXJtsOE50lCAEB uGD1Yqn+T94xI4BzIITBZLIhbZLE6VeWfAhEKBF7yRbQc3xCrLFHRuRCuKXWPXHDueQU LPgeuyKuclaacu3PJH35hR6xUeo9hEU0t3LGK8MPaJ6lUhZIUzpwMLrMVDOOKm04NF91 HiwqwTPJG9HRXvKDQ0n/nDmIoYz9Hb4voWpgRkRLzjZhi6XFa8XPqAD10pMWdEWidtj9 GCIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730846968; x=1731451768; 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=14SbIx3o26YQ4yyKbflKXIgXTVgVzW1mc5iHdybl3Tg=; b=Xb1iVeW8nW5R89v7Ut5+NmtoctOcxO53fwRZA6mqZGPwuwOFB6vUk8rpLqXqzxZ2Fs Jt1lN6vpkzCRHYhW8fjOyCvUiPNl1M7n8FXTgqGtVDf9WUm8/2QtzLkmsXru4E0OTHb7 C3dKrzzKaGwxyZVCY+TyU14ZwLN15mKGoWVnCrGokpG6VB7fvauRbZcHHK1+jLeV0wcv Kd3Z4dmWbx7cZrVoo1G4rpCx8lpni78iO0Oa6/calh292gxXB+ifzl+jHHkHHYTuD9bu wNNScLpbcK4wX8+M8OKxnDHRwUBCKNtlSsm2u3DzG8j0yLeAsdKiQgwRhSiS22gxXS9T 3juw== X-Gm-Message-State: AOJu0Yx988bzl4GGLEBKezQem7GX9mg5s5PykSjp0bT+fJIOizdaYDxj poidlQ7FqJ1RrPIQMQdOGwMONsX38Oo1hXnyUVOsIxVmshVwi83B5W5f1wUNYtoqdvh2QqHyNKK rcmiOUg== X-Received: by 2002:a05:600c:511c:b0:42c:a580:71cf with SMTP id 5b1f17b1804b1-4319ad24423mr331876465e9.30.1730846968140; Tue, 05 Nov 2024 14:49:28 -0800 (PST) Received: from localhost.localdomain ([154.14.63.34]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa6b3505sm1098555e9.15.2024.11.05.14.49.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 05 Nov 2024 14:49:27 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Bernhard Beschow <shentey@gmail.com>, =?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@redhat.com>, =?utf-8?q?Philippe_Math?= =?utf-8?q?ieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PULL 22/29] hw/gpio/mpc8xxx: Prefer DEFINE_TYPES() macro Date: Tue, 5 Nov 2024 22:47:20 +0000 Message-ID: <20241105224727.53059-23-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241105224727.53059-1-philmd@linaro.org> References: <20241105224727.53059-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/29] target/microblaze: Rename CPU endianness property as 'little-endian'
|
expand
|
diff --git a/hw/gpio/mpc8xxx.c b/hw/gpio/mpc8xxx.c index 63b7a5c881d..a3c1d2fbf4c 100644 --- a/hw/gpio/mpc8xxx.c +++ b/hw/gpio/mpc8xxx.c @@ -23,7 +23,6 @@ #include "hw/irq.h" #include "hw/sysbus.h" #include "migration/vmstate.h" -#include "qemu/module.h" #include "qom/object.h" #define TYPE_MPC8XXX_GPIO "mpc8xxx_gpio" @@ -208,17 +207,14 @@ static void mpc8xxx_gpio_class_init(ObjectClass *klass, void *data) device_class_set_legacy_reset(dc, mpc8xxx_gpio_reset); } -static const TypeInfo mpc8xxx_gpio_info = { - .name = TYPE_MPC8XXX_GPIO, - .parent = TYPE_SYS_BUS_DEVICE, - .instance_size = sizeof(MPC8XXXGPIOState), - .instance_init = mpc8xxx_gpio_initfn, - .class_init = mpc8xxx_gpio_class_init, +static const TypeInfo mpc8xxx_gpio_types[] = { + { + .name = TYPE_MPC8XXX_GPIO, + .parent = TYPE_SYS_BUS_DEVICE, + .instance_size = sizeof(MPC8XXXGPIOState), + .instance_init = mpc8xxx_gpio_initfn, + .class_init = mpc8xxx_gpio_class_init, + }, }; -static void mpc8xxx_gpio_register_types(void) -{ - type_register_static(&mpc8xxx_gpio_info); -} - -type_init(mpc8xxx_gpio_register_types) +DEFINE_TYPES(mpc8xxx_gpio_types)