Re: [PATCH 2/3] staging: iio: accel: adis16203: add missing spi_device_id table

From: Uwe Kleine-König

Date: Sun Oct 11 2026 - 19:10:53 EST


On Tue, Sep 29, 2026 at 09:48:59PM +0300, Abdelnasser Hussein wrote:
> The driver currently relies on OF/DT matching but lacks an SPI device
> ID table. This prevents module auto-loading on systems without device
> tree support.
>
> Add the spi_device_id table to resolve this and ensure the driver loads
> properly across all supported platforms.
>
> Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@xxxxxxxxx>
> ---
> drivers/staging/iio/accel/adis16203.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c
> index eddb786d4747..905485fd556f 100644
> --- a/drivers/staging/iio/accel/adis16203.c
> +++ b/drivers/staging/iio/accel/adis16203.c
> @@ -11,6 +11,7 @@
> #include <linux/iio/imu/adis.h>
>
> #include <linux/kernel.h>
> +#include <linux/mod_devicetable.h>

Nope, please don't add new users of <linux/mod_devicetable.h>.

You can rely on struct spi_device_id being provided by
<linux/spi/spi.h>, alternatively use <linux/device-id/spi.h>.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature