From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f44.google.com (mail-dl1-f44.google.com [74.125.82.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 D69C43C6608 for ; Thu, 7 May 2026 17:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778173637; cv=none; b=FTXYkmbFEx3rnMX+Q+wBN0xBzEd/+vI+xI970tlD4BknB37OhNbsVLNyYWYa7DXkT0fWn299Ze5BNaHPXXI1q2BNVn5XiPTgfrSrUf1gjk6sN9IJd5pJpYKvyMBft2j/68kETkzYUy27vnu6MyVEBBji7NqAIEMxhB630b80r84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778173637; c=relaxed/simple; bh=3ehpRE0ohgy8jZwQ70D8MHQv+KEBvTuuJUJPrYQ29P4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RwQtw1L/v2E4Xd1de9P8hhPxc5tITN4cZJrmlKefbfLYSb+dSl2y34nPtJpGVn4Z+QT7yEB3jdTscKGARYK+APuC8yl5OiaBaY1bXB1e5fTwNcVf0fyUiIWrlguGDargrf22QSMwxZhSnxUwE1dcTw/a+7fTtd3ecbD4Gng32qw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=P1xW/bH+; arc=none smtp.client-ip=74.125.82.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P1xW/bH+" Received: by mail-dl1-f44.google.com with SMTP id a92af1059eb24-12c45281a06so1963849c88.1 for ; Thu, 07 May 2026 10:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778173635; x=1778778435; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Rufpr9EOUZeXhStW3dVpXKOHmyTFPQwuYeGt/ZjlNtg=; b=P1xW/bH+8Pl94gDsWop3WpA/NgsOw3LclRQd4migFlVYy7a+ExIzD5/YDyPaMcgu8H NWCcfM9zput5B5s3nj7U0eIS8cSqQtxe7PE4JCSkG2hFfOxz3otjSd1hLkGJ0Kuym80R rUexpwcnTAjm73PnL3T7e6pIjv1d/lKvWToBPx6OaXNggfnsYGeSqg0iGnGwBBSMsxd0 eL4ZpaprkNu1hzwAIG5Z9tb7plSj9JuYtUT7AUPpR1YcBQetp8bzxnz5pSXQQyV1Yy6m oLdOjwBBSlEyik1baAoBkPN09Cz81CBj/2JbLrDS5OB0IrUvn9EDBGFS5/u+pRJZNa8j J14Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778173635; x=1778778435; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Rufpr9EOUZeXhStW3dVpXKOHmyTFPQwuYeGt/ZjlNtg=; b=Hz0+aZQ7Jiq7VfcjEs1Nc+4VohvuEb+LtpGOlzMOruF+CHEFSAnWJK7sohy6Ik7JXq lJIv39DtiiBFuU8Fp32ApY4FB4FHPvCILOeZwLeHE2kueV0T1hOY3mEmqMMZ66jl9SSL FuaysSz55oa+TKoMDi73lU1dWTz+GPsp7eI2evwOeJFP6HrqHKxY2MJ50OBE631ft7Ot mznbAm/V8fOhKnh5wiBx+DziIdt8a1gomkqplO5vDkOQnKkG8a2facJp4qIGAGQrzqYu jiTfwPkxNKXj4xgeuUJ8zcaga1QCxflz+q77snnvUlLXzreAugHYmcNQUWbtiUHVlAny 8XXw== X-Forwarded-Encrypted: i=1; AFNElJ8deXGjz5vzXB9pJ1nUSQu+mS5jSvZ28+0QfRplJB1mRl6QDz35psJFJk5Vy4aCCDeLxHC3Vv6SXLV55jI=@vger.kernel.org X-Gm-Message-State: AOJu0YwlqErnC0x72RiACJomRND2rXfi819wgjhb7hMlB0Vth9aUHWNa pk5jmqmtF63Jcym9psKw5KQhyAFcxiwoaXVK8t85fd/AqPKbgxp0AHnfRK3HOQ== X-Gm-Gg: AeBDiesjq/GFTXq7uBL68lolWjw2Igc5DgiuY6yBSCgHXAqeoq3nfpAsS2aNkV4ZnPo Jp59OsJtGDxnV7kR2nS+tEYFS2JnkyRshbKxmjSvxp8n4yww2hw7NQbpkJ/Ygm4ECCLc2H6Lhl3 4NM4jkJ4Cxo+WKiYdDsEIaLKyEi2Qp9aMPxGCy9MHaN/wm2GFp/fdhvgzCP2HJT1p4lIy44K+0s FxUkEiO/AI1jDmOFj9CkEkpiYeP0kg4KQYSbJg09O0PRKGDnvtxMy+bHOyUJP/srPIT+kRCu4tF SIP+jw65zC/6jZVcANkvFUSVmzmY0izgocu2CQR3jxztDtUH7kHsWu4pGlYzDd/vrd/lJc0Jnrt 8ozMNkk7Y17DxgTKWFiK9BfsRMNWc9SPpNqB1dONU1vkKbNLCF7KooCfNWdmbaMC5q37+6J9ePQ rswNfrjXC8D4PqFJ3GvH4uRL4KpNuT1xX8HaPonWhd/RgUTWNhWW0rDdNq07py2J9W6l4/KQpyv cI= X-Received: by 2002:a05:7022:6714:b0:130:ab68:2b7c with SMTP id a92af1059eb24-1317d893c68mr4721518c88.2.1778173634842; Thu, 07 May 2026 10:07:14 -0700 (PDT) Received: from google.com ([2a00:79e0:2ebe:8:6a50:9473:7750:56ef]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2f56f88f566sm8093446eec.16.2026.05.07.10.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 10:07:14 -0700 (PDT) Date: Thu, 7 May 2026 10:07:11 -0700 From: Dmitry Torokhov To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= Cc: Kees Cook , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann Subject: Re: [PATCH] Input: gameport: fm801-gp - Simplify initialisation of pci_device_id array Message-ID: References: <20260507160051.3315630-2-u.kleine-koenig@baylibre.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260507160051.3315630-2-u.kleine-koenig@baylibre.com> On Thu, May 07, 2026 at 06:00:51PM +0200, Uwe Kleine-König (The Capable Hub) wrote: > 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=x86 and ARCH=arm64. > > Signed-off-by: Uwe Kleine-König (The Capable Hub) Applied, thank you. -- Dmitry