Re: [PATCH v1] tty: serial: rp2: Use named initializer for pci_device_id::driver_data

From: Greg Kroah-Hartman

Date: Tue Jul 07 2026 - 08:28:11 EST


On Tue, Jul 07, 2026 at 11:09:30AM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> 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?!

It is, give me a chance to catch up, just made it through 300+
drivers/staging/ patches that had been sent recently....

thanks,

greg k-h