From patchwork Mon Oct 30 11:47:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 739252 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1069605wrt; Mon, 30 Oct 2023 04:49:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHx2vt8S/Yt+A6g97GEyleCL9kpjL+U/CwYLvb5UBgI2+LuV6ELtDtPX98cUmbcfUUEnx/k X-Received: by 2002:a05:620a:8230:b0:767:797b:4115 with SMTP id ow48-20020a05620a823000b00767797b4115mr9006334qkn.60.1698666567079; Mon, 30 Oct 2023 04:49:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698666567; cv=none; d=google.com; s=arc-20160816; b=GrQpNpcOXdiGueIf6m1zCZcM/NeL4Q08MsTLcC+95nctSQiN8W+jD1qpM5SxXz5/ky 2bTTkkO0CRu/V90CMGjP8cp+5MbQVR/VwgOkHi5/RJpvTeQ90pj4KgLvXbjScQ2wRkYm kqG9mEgjWXoNtTdoFE45WSItgZnKDXYkuaSPp2fdlL5aL1LsjgvYrWq95X8wcqp6isUz fgGwOTfXtI5vdnuUPDXZDmJZfMf7L1W3a7q9W+QX/GrJkql1LWPnPjgUbTFBTs+tYcna cjz83GlxOQ7jhcQYsvlxVDi4R2uBsbVPOTElnkfc0SuZzu771lGYuiDeDtcY6VfVdlNL daGQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=0Jktw0+JDR5gQmK7C4fHrffStDGgAZObhUeW0j1fx8s=; fh=yUeHCMY0O7AHgYs4WRBJtcSGK81/h+/8SdmYaglLfmk=; b=TjZIm81wUTqof5Ty/28W3oPS+GKc7jo07PLDRhVlz3P4HyVrZeer/g83qQ7rCe7Cv6 fCeV2QTTA2jIGoFZtjX6awmDuUVgO1IG6ml+12fXmQZ1bT3/vmurLuF5u+bP31pSR6VL /kMW2f2U1jq+GVxziJWScFxhCLtG+3shWugxtqQEWj0Em9kdCZ87pv9FpkvLEOhp5Mgs 7nS5Ljqecf8Qx5/GcUAOr98L5wGCEfv50qc5aLY7o0E7LLhcmiWbO+rZAClMxMA1RbtM smJYS2nKB8cVpXQgEn/lyQVxaLjGG+stUz0ZcvewNgvOAQGciFCKU2uXhdFVJzyA9lqm rhKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ORe2oSYi; 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 vr22-20020a05620a55b600b0076cb218e5f8si5380240qkn.581.2023.10.30.04.49.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Oct 2023 04:49:27 -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=ORe2oSYi; 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 1qxQkd-0007sB-Sb; Mon, 30 Oct 2023 07:48:11 -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 1qxQka-0007oY-4T for qemu-devel@nongnu.org; Mon, 30 Oct 2023 07:48:08 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxQkX-0007HW-OE for qemu-devel@nongnu.org; Mon, 30 Oct 2023 07:48:07 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-32f70391608so1833608f8f.2 for ; Mon, 30 Oct 2023 04:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698666484; x=1699271284; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0Jktw0+JDR5gQmK7C4fHrffStDGgAZObhUeW0j1fx8s=; b=ORe2oSYi8QQrMdB4FIl1tYfN3p67D5nTFHyVNsBrSHUFDBtw3qt1/gxb0MG39Mcoeu D4hZG4QSzqlR+d839VwClYpYXEg+0LY2VfXhQ6HkJ1snOifFYe5jrLQfqLsWQRiQQIg3 laq3oft6kS/m31Hr615tGdLbv2QWRefUjaXOfQFbb1e6lq6YXUgXG/nU2KqA1Yl670NP iYGwpUbfMi9/Isp5VtF+IrnqCbXRi4sbeFXeP/E2IxUYnxRRztp6YIDJj/JmmMmuSt5u or0AnPbZzqxDmBArRqHCyBZh2ulAI8cQ8IOwqLc3sZDJHK6HS/39mILugryn6w0+T1li E/9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698666484; x=1699271284; 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=0Jktw0+JDR5gQmK7C4fHrffStDGgAZObhUeW0j1fx8s=; b=hIcRWE0zFFhrZuEqAa9Uun2TpOhgex0leQyLibDr37+WZ4alTSnAYI5yt+pWLMUysm XYBFavxRuWAzOLU3gHpWkj+7+Tr+N+kbxrtrNJfx/FhhiOdlRilgF5Xiyuxscwt8AVCK 0PM9rlugBC98QkkvAAH/OJQkQ6acYCm+vqsm7KqRurri1Id+mgVJFhZv1y46HWJBUEbZ 7jPMCs1y+8H9E070iDljHlXJ9AQl3uCQs90GlFwIt+AriyiUI/46YvQ88Ia0qK5p1YK4 BjJe3dGCRR9k4Yi0Auk/VpwBOlttvzdglgqYNBm+MjrCMQz7glB6vo/9YYp695IL8NPI b4FA== X-Gm-Message-State: AOJu0Yw/TkfgSJoj79ifGXqvsfOQiAnbPx+gmD9ga/tnjNiy2RdlAbZq IhXDyadhhn3a/MeaABBcBEPgsQ== X-Received: by 2002:a05:6000:1191:b0:32d:a977:50b0 with SMTP id g17-20020a056000119100b0032da97750b0mr7103740wrx.41.1698666483984; Mon, 30 Oct 2023 04:48:03 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id az30-20020adfe19e000000b0032f7d7ec4adsm5262268wrb.92.2023.10.30.04.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:48:03 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Kevin Wolf Subject: [PATCH v2 0/6] arm/stellaris: convert gamepad input device to qdev Date: Mon, 30 Oct 2023 11:47:56 +0000 Message-Id: <20231030114802.3671871-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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 This patchseries converts the stellaris board's gamepad input device to qdev. This isn't a very important bit of conversion (I was just looking for a small tail-end-of-the-week task), but it does reduce by one the number of users of a couple of legacy APIs: vmstate_register() and qemu_add_kbd_event_handler(). All patches reviewed and tested; changes v1->v2 are minor only: * bump migration version number and mention migration break in commit message * drop unneeded private/public comment lines * make QemuInputHandler struct const I've included Kevin's qdev_prop_set_array() patch here, and will take this via target-arm.next if it doesn't get in via another route first. thanks -- PMM Kevin Wolf (1): qdev: Add qdev_prop_set_array() Peter Maydell (5): hw/input/stellaris_input: Rename to stellaris_gamepad hw/input/stellaris_gamepad: Rename structs to our usual convention hw/input/stellaris_gamepad: Remove StellarisGamepadButton struct hw/input/stellaris_input: Convert to qdev hw/input/stellaris_gamepad: Convert to qemu_input_handler_register() include/hw/input/gamepad.h | 18 ----- include/hw/input/stellaris_gamepad.h | 36 ++++++++++ include/hw/qdev-properties.h | 3 + hw/arm/stellaris.c | 34 ++++++--- hw/core/qdev-properties.c | 21 ++++++ hw/input/stellaris_gamepad.c | 102 +++++++++++++++++++++++++++ hw/input/stellaris_input.c | 93 ------------------------ hw/arm/Kconfig | 2 +- hw/input/Kconfig | 2 +- hw/input/meson.build | 2 +- 10 files changed, 190 insertions(+), 123 deletions(-) delete mode 100644 include/hw/input/gamepad.h create mode 100644 include/hw/input/stellaris_gamepad.h create mode 100644 hw/input/stellaris_gamepad.c delete mode 100644 hw/input/stellaris_input.c