[PATCH] drm/panel: s6e63m0: Silent no spi_device_id warning
Wei Yongjun
weiyongjun at huaweicloud.com
Thu Sep 15 16:34:24 UTC 2022
From: Wei Yongjun <weiyongjun1 at 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 at 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
More information about the dri-devel
mailing list