Re: [PATCH v2] iio: adc: max14001: add missing MODULE_DEVICE_TABLE macro
From: Jonathan Cameron
Date: Sun Sep 13 2026 - 17:58:08 EST
On Wed, 9 Sep 2026 17:05:50 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:
> On Wed, Sep 09, 2026 at 03:45:26PM +0200, Joshua Crofts wrote:
> > On Wed, 9 Sep 2026 16:38:50 +0300
> > Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:
> >
> > > On Wed, Sep 09, 2026 at 01:03:04PM +0000, Joshua Crofts wrote:
> > > > The MAX14001 has an SPI ID table, but does not export it with the
> > > > MODULE_DEVICE_TABLE(spi, ...) macro. Because of this, SPI-based module
> > > > autoloading fails on systems that don't use devicetree (e.g. via
> > > > spi_board_info).
> > > >
> > > > Add the missing macro to export the alias information.
> > > >
> > > > Fixes: 59795109fa67 ("iio: adc: max14001: New driver")
> > > > Cc: <stable@xxxxxxxxxxxxxxx>
> > > > Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
> > > > ---
> > >
> > > Changelog?
> >
> > God, I should start using AI to check my patches before sending.
> > Appending below.
> >
> > Changes in v2:
> > - edit commit message (expand on module autoloading and SPI)
>
> Thanks.
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
>
Applied to the testing branch of iio.git. Not rushing this
in as for dt at least the other MODULE_DEVICE Table probably
does the job (or the driver name fallback).
So nice to have rather than urgent
thanks,
Jonathan