From nobody Sat Jun 13 11:58:40 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 852732E7623 for ; Thu, 7 May 2026 16:01:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778169670; cv=none; b=kpf3bzZg6TrHB10xf4BXW1yT0s7ptgFrgY5JvKkCeu38nbiy0/JcMJwtITaEQ0cfrzklPgf5BOPYDTfuDUWyHbQkreubhbsa5mi2O21Qx6d+u2kTxuYjx9hg7pRT95PoIRgedPa47tjzf36Kk1r0xnkiL9d6dw8pqmP/7zFLOiM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778169670; c=relaxed/simple; bh=86jRR31hIPAbTyJgTd2g7ztp0Z3nq4R7yWQU9JC2EgQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ZxrNXpCcjDlzxySIrYdldNHsNqjCIwnmLzchGC4u2gESXS/eQpV4CIYeul76Gv0TKNQdwgnR/Z8yRshwtyIr1f8JdtU7ghA8k4jkY3eqF7wddo5/N5oIY7gGV1cyM84LGRBPF0CHXq4drP5kKS8KHGqBO3E+Bo4ibI6MS891Gxw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=oWlxZRmk; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="oWlxZRmk" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-488b150559bso8106165e9.1 for ; Thu, 07 May 2026 09:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1778169665; x=1778774465; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9mY1tVNrW57Kh0sTQRfRQC2YJ59ZYARhe+FwxccACwI=; b=oWlxZRmkysia4RjSFkjpMyhcfPfbL7j8fYlloxdaNb4I+i4pHEQuUykjbUv53zv9ja gyAn9n0aW20stb0Z885/fQFQ0/04pK1xXV3rATeka6fQh6SQwCTBQnAUZVmz5kbHyug1 +fW7gHQMjJPRcM3wPnivkmCts8b/94iQhFcNka8DXM0+fOUx8VJSbriLtfJhbR7u0rXY 8XLg3ZZsjfbBllZnuQ4teME5i1i4iPZrqgSWvNDzhVDW6WUNvvcLtHq03j46q+xgIqcU 2yrcmqYghTC3Whvmp8+nV3pFUQytVuXCn/i39THqomocjgtGwEPpK4jSpvjUC6+zlXZc 2S9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778169665; x=1778774465; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9mY1tVNrW57Kh0sTQRfRQC2YJ59ZYARhe+FwxccACwI=; b=Q2eB1/eTNyRJOzz2hU++bIvMJ9NSkbukb83otAb47CRgbRlOouUeUziR3LB6TPIwtS UTZCY17HXpnZKZb+f3UbVSY8QTZrTynK5jcmjZEy/2PszsTbzR/lSri8rEPIbgIXhLe4 wRhq6hK4hBqQ6YOIwflx1R/QDYMxq9GbHUtpDaiE4sZifFGRqLK6ILzByIMdSo7lOR5s 5iUmV/SP4ImmdyDXJ+eHotIPcxwZXkwzSObOzQ7v9TQYuTIc6HhihqTMgppOunQKGVcv HSqGifJWtJY5oWuiD4mZtLJyFadISsP2XufwYaPAHj7plgmqdUYGwod52XwQLOFzD/Ay 7amw== X-Forwarded-Encrypted: i=1; AFNElJ9jW98agU+IVuGCll0iyKZs1am11VSlMKm3ZJ9Dge5me3ljdqcxcpqMJSIN6RfSG6ciAvuDPLg0NL4VZ54=@vger.kernel.org X-Gm-Message-State: AOJu0YzFd1CsP/dLdi6AD8Ezp2MpeNRWxbpK0vd5tzjfjdGUymVERrTU dxeIABRB4tyTuuPtE4WFnKKFvxppBGjK+CmvoW0QWObscHnsdNNUeSwkfv+Og5UGonI= X-Gm-Gg: AeBDiesMr6PRIVOm9i61GZRb0ulc8RR34pYmWtMn/fypOECuHkjgqS4eLTSkOnUqeJm 4D7EqcmXL+L3S3y2VvH6lAIRNKmJOXu229rOPgs12iNMZEGhbZZGdRgVE8bI9wPuMWDctHOQ8F7 J7JhgOGGgo6OXJkDEh0GtctC0JkGXsYe+b9V8CAlYwK2evORJdd0/bpsU7qVrb5m2TbA6ujYmJ9 lhpqCMisMx5BBrjHot78Jcgli4twMPuknaxxixqjqG0BItP4JpOMSkyh9sbrIjWJE751Yvv+0fT WdM8JN0FcHARreX9AePdi+PKa0N1nyOu+t2DsX4iSsS+j8k9BWHzWaTrhpcFB/CpfBzv3CUbV/B jBGLP4lv+lzYIb8IPEbY4PBmSsW+IGQ0L+dPBJkRUqXwRJmc2qkGmOg1E2wKk3uTo1z9iTXdn2Z FIyV09Fb0UBPNYZBBLmO4uU/eBEcSYr7i9p5MINxPGWla36W2xV7rs01YkHi+oeXK+XbG7678nw 3Kr7Wk1uYW7MFwKP/r+qdOXnA== X-Received: by 2002:a05:600c:3ba8:b0:48a:7676:30bc with SMTP id 5b1f17b1804b1-48e52bd5035mr155353985e9.14.1778169664638; Thu, 07 May 2026 09:01:04 -0700 (PDT) Received: from localhost (p200300f65f114e08e9fd60f450b139aa.dip0.t-ipconnect.de. [2003:f6:5f11:4e08:e9fd:60f4:50b1:39aa]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-48e538ca8c0sm122659875e9.13.2026.05.07.09.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 09:01:04 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Dmitry Torokhov Cc: Kees Cook , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann Subject: [PATCH] Input: gameport: fm801-gp - Simplify initialisation of pci_device_id array Date: Thu, 7 May 2026 18:00:51 +0200 Message-ID: <20260507160051.3315630-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1639; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=86jRR31hIPAbTyJgTd2g7ztp0Z3nq4R7yWQU9JC2EgQ=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBp/LczjvJtYopiO+2ZbYLnq/s9agZgC8fDURREc 2UElKtfRUKJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCafy3MwAKCRCPgPtYfRL+ Ts0NCACDP3GT0wUDd+Z7vZCKAhGBmOAw0h++WjUz/Ka78joOr2KmFS3Domr0Ly59ykA0meIoQGT +vtoZ9B/LkYEUctgnVGfXUZYpB7jUenIuzf7xm4xPRlFqVUvSruHr+E9yi/Lt1z/Q1CZ5tWahtK OMGwhsNPVWET7l5Y+QtGN6+9krQw7ChnUX9O9srl7kKDml4ebMDywUW+lte8S2x1/PfhSUvI0yX IMgvKuVbI6OS+GP1NI07782Htd/g3Wh5GTWw3bilBqakKj//PYNtNPoSPtqfmXCKi6R9UQnlEc9 OMToXCljmiRP1avxP3C97azXtsHPYXIWVcT4zN6y8UiR1VXF X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable Instead of assigning the pci_device_id members using a list (which is hard to read as you need to look at the order of the members in that struct in parallel) use the PCI_VDEVICE() convenience macro to compact the initialisation while improving readability. Also drop trailing zeros that the compiler will care about then. The change doesn't introduce binary changes to the compiled driver, verified on both ARCH=3Dx86 and ARCH=3Darm64. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) --- Hello, this is a preparing change for making struct pci_device_id::driver_data an anonymous union (similar to https://lore.kernel.org/all/cover.1776579304.git.u.kleine-koenig@baylibre.c= om/). This requires named initializers for .driver_data. In this case the initialization can be dropped as the driver doesn't make use of .driver_data at all. Best regards Uwe drivers/input/gameport/fm801-gp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/gameport/fm801-gp.c b/drivers/input/gameport/fm8= 01-gp.c index 423cccdea34f..1e8c6c044844 100644 --- a/drivers/input/gameport/fm801-gp.c +++ b/drivers/input/gameport/fm801-gp.c @@ -125,8 +125,8 @@ static void fm801_gp_remove(struct pci_dev *pci) } =20 static const struct pci_device_id fm801_gp_id_table[] =3D { - { PCI_VENDOR_ID_FORTEMEDIA, PCI_DEVICE_ID_FM801_GP, PCI_ANY_ID, PCI_ANY_I= D, 0, 0, 0 }, - { 0 } + { PCI_VDEVICE(FORTEMEDIA, PCI_DEVICE_ID_FM801_GP) }, + { } }; MODULE_DEVICE_TABLE(pci, fm801_gp_id_table); =20 base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 --=20 2.47.3