lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220905152659.4152483-2-weiyongjun@huaweicloud.com>
Date:   Mon,  5 Sep 2022 15:26:58 +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 2/3] leds: el15203000: 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_el15203000 has no spi_device_id for crane,el15203000

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

diff --git a/drivers/leds/leds-el15203000.c b/drivers/leds/leds-el15203000.c
index 7e7b617bcd56..e24b4399176e 100644
--- a/drivers/leds/leds-el15203000.c
+++ b/drivers/leds/leds-el15203000.c
@@ -329,9 +329,16 @@ static const struct of_device_id el15203000_dt_ids[] = {
 
 MODULE_DEVICE_TABLE(of, el15203000_dt_ids);
 
+static const struct spi_device_id el15203000_spi_ids[] = {
+	{ "el15203000" },
+	{ },
+};
+MODULE_DEVICE_TABLE(spi, el15203000_spi_ids);
+
 static struct spi_driver el15203000_driver = {
 	.probe		= el15203000_probe,
 	.remove		= el15203000_remove,
+	.id_table	= el15203000_spi_ids,
 	.driver = {
 		.name		= KBUILD_MODNAME,
 		.of_match_table	= el15203000_dt_ids,
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ