iio: imu: adis16475: add spi_device_id table
authorNuno Sa <nuno.sa@analog.com>
Thu, 2 Nov 2023 12:52:58 +0000 (13:52 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 26 Nov 2023 16:41:12 +0000 (16:41 +0000)
commitee4d79055aeea27f1b8c42233cc0c90d0a8b5355
tree605c9de19a231a5beb2088c61582db0c5d7c3ff7
parent3b8157ec4573e304a29b7bced627e144dbc3dfdb
iio: imu: adis16475: add spi_device_id table

This prevents the warning message "SPI driver has no spi_device_id for..."
when registering the driver. More importantly, it makes sure that
module autoloading works as spi relies on spi: modaliases and not of.

While at it, move the of_device_id table to it's natural place.

Fixes: fff7352bf7a3c ("iio: imu: Add support for adis16475")
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20231102125258.3284830-1-nuno.sa@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16475.c