Re: [PATCH] pwm: Consistently define pci_device_ids using named initializers

From: Uwe Kleine-König

Date: Thu May 07 2026 - 11:14:14 EST


Hello,

On Mon, May 04, 2026 at 10:55:35AM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> The .driver_data member in the various struct pci_device_id arrays were
> initialized by list expressions. This isn't easily readable if you're
> not into PCI. Using named initializers is more explicit and thus easier
> to parse.
>
> The secret plan is to make struct pci_device_id::driver_data an
> anonymous union (similar to
> https://lore.kernel.org/all/cover.1776579304.git.u.kleine-koenig@xxxxxxxxxxxx/)
> and that requires named initializers. But it's also a nice cleanup on
> its own.
>
> This change doesn't introduce changes to the compiled pci_device_id
> arrays. Tested on x86 and arm64.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>

Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature