linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] leds: cr0014114: silent no spi_device_id warning
@ 2022-09-05 15:26 Wei Yongjun
  2022-09-05 15:26 ` [PATCH 2/3] leds: el15203000: " Wei Yongjun
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Wei Yongjun @ 2022-09-05 15:26 UTC (permalink / raw)
  To: Pavel Machek, Oleh Kravchenko; +Cc: Wei Yongjun, linux-leds, linux-kernel

From: Wei Yongjun <weiyongjun1@huawei.com>

Add spi_device_id entries to silent following SPI warning:

SPI driver leds_cr0014114 has no spi_device_id for crane,cr0014114

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/leds/leds-cr0014114.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/leds/leds-cr0014114.c b/drivers/leds/leds-cr0014114.c
index c87686bd7c18..095455163246 100644
--- a/drivers/leds/leds-cr0014114.c
+++ b/drivers/leds/leds-cr0014114.c
@@ -281,9 +281,16 @@ static const struct of_device_id cr0014114_dt_ids[] = {
 
 MODULE_DEVICE_TABLE(of, cr0014114_dt_ids);
 
+static const struct spi_device_id cr0014114_spi_ids[] = {
+	{ "cr0014114" },
+	{ },
+};
+MODULE_DEVICE_TABLE(spi, cr0014114_spi_ids);
+
 static struct spi_driver cr0014114_driver = {
 	.probe		= cr0014114_probe,
 	.remove		= cr0014114_remove,
+	.id_table	= cr0014114_spi_ids,
 	.driver = {
 		.name		= KBUILD_MODNAME,
 		.of_match_table	= cr0014114_dt_ids,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-05 21:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-05 15:26 [PATCH 1/3] leds: cr0014114: silent no spi_device_id warning Wei Yongjun
2022-09-05 15:26 ` [PATCH 2/3] leds: el15203000: " Wei Yongjun
2022-09-05 20:53   ` Oleh Kravchenko
2022-09-05 15:26 ` [PATCH 3/3] leds: spi-byte: " Wei Yongjun
2022-09-05 20:53 ` [PATCH 1/3] leds: cr0014114: " Oleh Kravchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).