All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel: nv3052c: Silent no spi_device_id warning
@ 2022-09-15 16:33 Wei Yongjun
  0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2022-09-15 16:33 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 nv3052c has no spi_device_id for leadtek,ltk035c5444t

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

diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c
index cf078f0d3cd3..ce0d43966275 100644
--- a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c
+++ b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c
@@ -467,6 +467,12 @@ static const struct of_device_id nv3052c_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, nv3052c_of_match);
 
+static const struct spi_device_id nv3052c_ids[] = {
+	{ "ltk035c5444t", (kernel_ulong_t)&ltk035c5444t_panel_info },
+	{ },
+};
+MODULE_DEVICE_TABLE(spi, nv3052c_ids);
+
 static struct spi_driver nv3052c_driver = {
 	.driver = {
 		.name = "nv3052c",
@@ -474,6 +480,7 @@ static struct spi_driver nv3052c_driver = {
 	},
 	.probe = nv3052c_probe,
 	.remove = nv3052c_remove,
+	.id_table = nv3052c_ids,
 };
 module_spi_driver(nv3052c_driver);
 
-- 
2.34.1


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

only message in thread, other threads:[~2022-09-15 16:33 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:33 [PATCH] drm/panel: nv3052c: 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.