All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel: s6e63m0: Silent no spi_device_id warning
@ 2022-09-15 16:34 Wei Yongjun
  0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2022-09-15 16:34 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter
  Cc: Wei Yongjun, dri-devel

From: Wei Yongjun <weiyongjun1@huawei.com>

Add spi_device_id entries to silent following SPI warning:

SPI driver panel-samsung-s6e63m0 has no spi_device_id for samsung,s6e63m0

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c
index d99afcc672ca..df9e8762a136 100644
--- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c
+++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c
@@ -73,9 +73,16 @@ static const struct of_device_id s6e63m0_spi_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, s6e63m0_spi_of_match);
 
+static const struct spi_device_id s6e63m0_ids[] = {
+	{ "s6e63m0" },
+	{ },
+};
+MODULE_DEVICE_TABLE(spi, s6e63m0_ids);
+
 static struct spi_driver s6e63m0_spi_driver = {
 	.probe			= s6e63m0_spi_probe,
 	.remove			= s6e63m0_spi_remove,
+	.id_table		= s6e63m0_ids,
 	.driver			= {
 		.name		= "panel-samsung-s6e63m0",
 		.of_match_table = s6e63m0_spi_of_match,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-15 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-15 16:34 [PATCH] drm/panel: s6e63m0: Silent no spi_device_id warning Wei Yongjun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.