]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:13:38 +0000 (15:13 +0100)
commit1228354a98893cc1b7531edc34fdd7f6aca753b7
treea9a09e6324930c28dbeb437ec2d50ba823791cb6
parentbd1be85dbbbd4076e8dbdceefc3c4d2c673e0075
iio: imu: adis16475: add spi_device_id table

[ Upstream commit ee4d79055aeea27f1b8c42233cc0c90d0a8b5355 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/imu/adis16475.c