From: Wei Yongjun <weiyongjun@huaweicloud.com>
To: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee.jones@linaro.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Christian Mauderer <oss@c-mauderer.de>
Cc: Wei Yongjun <weiyongjun1@huawei.com>,
linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] leds: spi-byte: silent no spi_device_id warning
Date: Mon, 5 Sep 2022 15:26:59 +0000 [thread overview]
Message-ID: <20220905152659.4152483-3-weiyongjun@huaweicloud.com> (raw)
In-Reply-To: <20220905152659.4152483-1-weiyongjun@huaweicloud.com>
From: Wei Yongjun <weiyongjun1@huawei.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@huawei.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
next prev parent reply other threads:[~2022-09-05 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Wei Yongjun [this message]
2022-09-05 20:53 ` [PATCH 1/3] leds: cr0014114: " Oleh Kravchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220905152659.4152483-3-weiyongjun@huaweicloud.com \
--to=weiyongjun@huaweicloud.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=oss@c-mauderer.de \
--cc=pavel@ucw.cz \
--cc=ulf.hansson@linaro.org \
--cc=weiyongjun1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).