Re: [PATCH v1 0/3] gpio: Use named initializers for platform_device_id arrays

From: Uwe Kleine-König (The Capable Hub)

Date: Thu May 28 2026 - 06:13:09 EST


Hello Bartosz,

On Thu, May 28, 2026 at 10:47:55AM +0200, Bartosz Golaszewski wrote:
> On Wed, 27 May 2026 16:57:26 +0200, Uwe Kleine-König (The Capable Hub) wrote:
> > this series targets to use named initializers for platform_device_id
> > arrays. In general these are better readable for humans and more robust
> > to changes in the respective struct definition.
> >
> > This robustness is needed as I want to do
> >
> > diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
> > --- a/include/linux/mod_devicetable.h
> > +++ b/include/linux/mod_devicetable.h
> > @@ -610,4 +610,7 @@ struct dmi_system_id {
> > struct platform_device_id {
> > char name[PLATFORM_NAME_SIZE];
> > - kernel_ulong_t driver_data;
> > + union {
> > + kernel_ulong_t driver_data;
> > + const void *driver_data_ptr;
> > + };
> > };
> >
> > [...]
>
> I fixed your SoB as requested and fixed up patch 2/3 as one of the drivers it
> touched no longer exists in my tree.

Right, I noticed that conflict when rebasing my stack to next-20260527
and assumed you'd cope for that.

Thanks!
Uwe

Attachment: signature.asc
Description: PGP signature