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]
Date:   Mon,  5 Sep 2022 15:26:59 +0000
From:   Wei Yongjun <weiyongjun@...weicloud.com>
To:     Pavel Machek <pavel@....cz>, Lee Jones <lee.jones@...aro.org>,
        Ulf Hansson <ulf.hansson@...aro.org>,
        Christian Mauderer <oss@...auderer.de>
Cc:     Wei Yongjun <weiyongjun1@...wei.com>, linux-leds@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] leds: spi-byte: 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_spi_byte has no spi_device_id for ubnt,acb-spi-led

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

diff --git a/drivers/leds/leds-spi-byte.c b/drivers/leds/leds-spi-byte.c
index 2bc5c99daf51..9d23dc9e7639 100644
--- a/drivers/leds/leds-spi-byte.c
+++ b/drivers/leds/leds-spi-byte.c
@@ -137,9 +137,16 @@ static void spi_byte_remove(struct spi_device *spi)
 	mutex_destroy(&led->mutex);
 }
 
+static const struct spi_device_id spi_byte_spi_ids[] = {
+	{ "acb-spi-led", (kernel_ulong_t)&ubnt_acb_spi_led_cdef },
+	{ },
+};
+MODULE_DEVICE_TABLE(spi, spi_byte_spi_ids);
+
 static struct spi_driver spi_byte_driver = {
 	.probe		= spi_byte_probe,
 	.remove		= spi_byte_remove,
+	.id_table	= spi_byte_spi_ids,
 	.driver = {
 		.name		= KBUILD_MODNAME,
 		.of_match_table	= spi_byte_dt_ids,
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ