Re: [PATCH v1] tty: serial: rp2: Use named initializer for pci_device_id::driver_data
From: Uwe Kleine-König (The Capable Hub)
Date: Tue Jul 07 2026 - 05:11:31 EST
Hello,
On Sun, May 24, 2026 at 03:19:05PM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> The .driver_data member of the struct pci_device_id array were
> initialized by list expressions relying on hidden assignment of .class
> and .class_mask in PCI_VDEVICE().
>
> Make the initialization more robust by using a named initializer. This
> robustness is relevant for a planned change to struct pci_device_id that
> replaces .driver_data by an anonymous union.
>
> This change doesn't introduce changes to the compiled pci_device_id
> array. Tested on x86 and arm64.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
This patch was sent before the merge window leading to v7.2-rc1 and got
no feedback and isn't in next. So I wonder if it's still on someone's
radar?!
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature