]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
omapdrm: panel: td028ttec1: replace MODULE_ALIAS by MODULE_DEVICE_TABLE
authorH. Nikolaus Schaller <hns@goldelico.com>
Tue, 28 Nov 2017 15:48:55 +0000 (16:48 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 19 Dec 2017 08:32:00 +0000 (10:32 +0200)
to make it easier to keep in sync with the OF device table.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c

index a0dfa14f4fab36e685ba9e044934e83c5e8f3853..2721a86ac5e733f28eaa0babefe3bc5e514cae3f 100644 (file)
@@ -460,9 +460,19 @@ static const struct of_device_id td028ttec1_of_match[] = {
 
 MODULE_DEVICE_TABLE(of, td028ttec1_of_match);
 
+static const struct spi_device_id td028ttec1_ids[] = {
+       { "toppoly,td028ttec1", 0 },
+       { "tpo,td028ttec1", 0},
+       { /* sentinel */ }
+};
+
+MODULE_DEVICE_TABLE(spi, td028ttec1_ids);
+
+
 static struct spi_driver td028ttec1_spi_driver = {
        .probe          = td028ttec1_panel_probe,
        .remove         = td028ttec1_panel_remove,
+       .id_table       = td028ttec1_ids,
 
        .driver         = {
                .name   = "panel-tpo-td028ttec1",
@@ -473,8 +483,6 @@ static struct spi_driver td028ttec1_spi_driver = {
 
 module_spi_driver(td028ttec1_spi_driver);
 
-MODULE_ALIAS("spi:tpo,td028ttec1");
-MODULE_ALIAS("spi:toppoly,td028ttec1");
 MODULE_AUTHOR("H. Nikolaus Schaller <hns@goldelico.com>");
 MODULE_DESCRIPTION("Toppoly TD028TTEC1 panel driver");
 MODULE_LICENSE("GPL");
index 4aeb908f2d1ea526ff122324e20512f9e72e84ae..f6da8755b8592ee5dfe3ae95fbeb4c7ce7201292 100644 (file)
@@ -463,9 +463,18 @@ static const struct of_device_id td028ttec1_of_match[] = {
 
 MODULE_DEVICE_TABLE(of, td028ttec1_of_match);
 
+static const struct spi_device_id td028ttec1_ids[] = {
+       { "toppoly,td028ttec1", 0 },
+       { "tpo,td028ttec1", 0},
+       { /* sentinel */ }
+};
+
+MODULE_DEVICE_TABLE(spi, td028ttec1_ids);
+
 static struct spi_driver td028ttec1_spi_driver = {
        .probe          = td028ttec1_panel_probe,
        .remove         = td028ttec1_panel_remove,
+       .id_table       = td028ttec1_ids,
 
        .driver         = {
                .name   = "panel-tpo-td028ttec1",
@@ -476,8 +485,6 @@ static struct spi_driver td028ttec1_spi_driver = {
 
 module_spi_driver(td028ttec1_spi_driver);
 
-MODULE_ALIAS("spi:tpo,td028ttec1");
-MODULE_ALIAS("spi:toppoly,td028ttec1");
 MODULE_AUTHOR("H. Nikolaus Schaller <hns@goldelico.com>");
 MODULE_DESCRIPTION("Toppoly TD028TTEC1 panel driver");
 MODULE_LICENSE("GPL");