]> 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:18:37 +0000 (15:18 +0100)
commit481561a431fff2e00b353fabe59cef7ba6d6f946
tree197b7b8dd2e3f63405943b03a725d014c155b5a4
parent027eaeaf3294607104e90e84cec3f55e792cab22
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