Re: [PATCH] iio: dac: ad5446: fix OF module device table
From: Jonathan Cameron
Date: Sun Jul 19 2026 - 22:31:52 EST
On Wed, 15 Jul 2026 10:11:19 +0200
Joshua Crofts <joshua.crofts1@xxxxxxxxx> wrote:
> On Tue, 14 Jul 2026 17:18:45 +0800
> Can Peng <pengcan@xxxxxxxxxx> wrote:
>
> > The ad5446 I2C driver exports its OF match table with
> > MODULE_DEVICE_TABLE(OF, ...).
> >
> > The device table type is used by modpost when generating module aliases,
> > and scripts/mod/file2alias.c matches the lowercase "of" type. Using
> > "OF" prevents the OF table from being recognized, so no OF module alias is
> > generated for the I2C driver.
> >
> > Use the lowercase "of" type so OF-based module autoloading works.
> >
> > Fixes: 876d94024087 ("iio: dac: ad5446: Separate I2C/SPI into different drivers")
> > Signed-off-by: Can Peng <pengcan@xxxxxxxxxx>
> > ---
>
> This needs a Cc: stable tag, perhaps Jonathan can add it when applying.
>
> FWIW,
>
> Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
>
Applied to the fixes-togreg branch of iio.git and marked for stable.
Thanks
Jonathan