Re: [PATCH] iio: adc: max1241: add missing MODULE_DEVICE_TABLE()

From: Jonathan Cameron

Date: Sat Jul 04 2026 - 19:58:19 EST


On Sat, 4 Jul 2026 19:57:37 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:

> On Sat, Jul 04, 2026 at 11:16:33PM +0800, Pengpeng Hou wrote:
> > The driver has a match table for the spi bus wired into its driver
> > structure, but the table is not exported with MODULE_DEVICE_TABLE().
> >
> > Add the missing MODULE_DEVICE_TABLE() entry so module alias information
> > is generated for automatic module loading.
> >
> > This is a source-level fix. It does not claim dynamic hardware
> > reproduction; the evidence is the driver-owned match table, its use by
> > the driver registration structure, and the missing module alias
> > publication.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

I'm not rushing this in given we don't have reports of it actually
causing problems for any users. Applied to the testing branch of iio.git
which means it'll go upstream in the next merge window

Thanks,

Jonathan

>