Re: [PATCH 2/3] leds: el15203000: silent no spi_device_id warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Oleh Kravchenko <oleg@xxxxxxxxxx>

05.09.22 18:26, Wei Yongjun пише:
From: Wei Yongjun <weiyongjun1@xxxxxxxxxx>

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@xxxxxxxxxx>
---
  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,




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux