OSDN Git Service

media: ir-spi: silence no spi_device_id warnings
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 22 Sep 2022 08:37:03 +0000 (09:37 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:00:22 +0000 (08:00 +0000)
commita42f363e6b58d1fc642d6d082dc660be73656ba5
tree890bc638f8b0d812ab6a562a483805bb39b361f4
parent54607f29a204e10c15f4348f3782cee324360f29
media: ir-spi: silence no spi_device_id warnings

SPI devices use the spi_device_id for module autoloading even on
systems using device tree, after commit 5fa6863ba692 ("spi: Check
we have a spi_device_id for each DT compatible"), kernel warns as
follows since the spi_device_id is missing:

SPI driver ir-spi has no spi_device_id for ir-spi-led

Add spi_device_id entries to silence the warning, and ensure driver
module autoloading works.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/rc/ir-spi.c