[PATCH] drm/panel: s6d27a1: Silent no spi_device_id warning
Wei Yongjun
weiyongjun at huaweicloud.com
Thu Sep 15 16:34:07 UTC 2022
From: Wei Yongjun <weiyongjun1 at huawei.com>
Add spi_device_id entries to silent following SPI warning:
SPI driver s6d27a1-panel has no spi_device_id for samsung,s6d27a1
Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>
---
drivers/gpu/drm/panel/panel-samsung-s6d27a1.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-samsung-s6d27a1.c b/drivers/gpu/drm/panel/panel-samsung-s6d27a1.c
index 2adb223a895c..7c2bbf84c28f 100644
--- a/drivers/gpu/drm/panel/panel-samsung-s6d27a1.c
+++ b/drivers/gpu/drm/panel/panel-samsung-s6d27a1.c
@@ -304,9 +304,16 @@ static const struct of_device_id s6d27a1_match[] = {
};
MODULE_DEVICE_TABLE(of, s6d27a1_match);
+static const struct spi_device_id s6d27a1_ids[] = {
+ { "s6d27a1" },
+ { },
+};
+MODULE_DEVICE_TABLE(spi, s6d27a1_ids);
+
static struct spi_driver s6d27a1_driver = {
.probe = s6d27a1_probe,
.remove = s6d27a1_remove,
+ .id_table = s6d27a1_ids,
.driver = {
.name = "s6d27a1-panel",
.of_match_table = s6d27a1_match,
--
2.34.1
More information about the dri-devel
mailing list