Re: [PATCH] iio: dac: ad5446: fix OF module device table
From: Joshua Crofts
Date: Wed Jul 15 2026 - 04:11:42 EST
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>
--
Kind regards
CJD