summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2023-07-14 03:37:40 +0200
committerNeil Armstrong <neil.armstrong@linaro.org>2023-08-01 10:29:53 +0200
commit11649154ec46f1c7f7c58bac22e2c5927ca6b6a2 (patch)
treeff253ada51197e071ec7967281ff6944133d2c5b
parentdt-bindings: display: st7789v: add Inanbo T28CP45TN89 (diff)
downloadlinux-11649154ec46f1c7f7c58bac22e2c5927ca6b6a2.tar.xz
linux-11649154ec46f1c7f7c58bac22e2c5927ca6b6a2.zip
drm/panel: sitronix-st7789v: add SPI ID table
SPI device drivers should also have a SPI ID table. Reviewed-by: Michael Riesch <michael.riesch@wolfvision.net> Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230714013756.1546769-4-sre@kernel.org
-rw-r--r--drivers/gpu/drm/panel/panel-sitronix-st7789v.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c
index bbc4569cbcdc..e4d8dea1db36 100644
--- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c
+++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c
@@ -394,6 +394,12 @@ static void st7789v_remove(struct spi_device *spi)
drm_panel_remove(&ctx->panel);
}
+static const struct spi_device_id st7789v_spi_id[] = {
+ { "st7789v" },
+ { }
+};
+MODULE_DEVICE_TABLE(spi, st7789v_spi_id);
+
static const struct of_device_id st7789v_of_match[] = {
{ .compatible = "sitronix,st7789v" },
{ }
@@ -403,6 +409,7 @@ MODULE_DEVICE_TABLE(of, st7789v_of_match);
static struct spi_driver st7789v_driver = {
.probe = st7789v_probe,
.remove = st7789v_remove,
+ .id_table = st7789v_spi_id,
.driver = {
.name = "st7789v",
.of_match_table = st7789v_of_match,