[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220905152659.4152483-1-weiyongjun@huaweicloud.com>
Date: Mon, 5 Sep 2022 15:26:57 +0000
From: Wei Yongjun <weiyongjun@...weicloud.com>
To: Pavel Machek <pavel@....cz>, Oleh Kravchenko <oleg@....org.ua>
Cc: Wei Yongjun <weiyongjun1@...wei.com>, linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] leds: cr0014114: silent no spi_device_id warning
From: Wei Yongjun <weiyongjun1@...wei.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@...wei.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
Powered by blists - more mailing lists