]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
omapdrm: panel: fix compatible vendor string for td028ttec1
authorH. Nikolaus Schaller <hns@goldelico.com>
Tue, 28 Nov 2017 15:48:54 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 10:00:25 +0000 (11:00 +0100)
[ Upstream commit c1b9d4c75cd549e08bd0596d7f9dcc20f7f6e8fa ]

The vendor name was "toppoly" but other panels and the vendor list
have defined it as "tpo". So let's fix it in driver and bindings.

We keep the old definition in parallel to stay compatible with
potential older DTB setup.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt [moved from Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt with 84% similarity]
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c

similarity index 84%
rename from Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt
rename to Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt
index 7175dc3740acf12ddddd673a13d543eecb9c6440..ed34253d9fb129916f25db38440faf13645721c3 100644 (file)
@@ -2,7 +2,7 @@ Toppoly TD028TTEC1 Panel
 ========================
 
 Required properties:
-- compatible: "toppoly,td028ttec1"
+- compatible: "tpo,td028ttec1"
 
 Optional properties:
 - label: a symbolic name for the panel
@@ -14,7 +14,7 @@ Example
 -------
 
 lcd-panel: td028ttec1@0 {
-       compatible = "toppoly,td028ttec1";
+       compatible = "tpo,td028ttec1";
        reg = <0>;
        spi-max-frequency = <100000>;
        spi-cpol;
index e859b3f893f70a67c956615894c87f8b8f9fc171..6112c32b994f7122526e6a62300aadc54a7e1e13 100644 (file)
@@ -456,6 +456,8 @@ static int td028ttec1_panel_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id td028ttec1_of_match[] = {
+       { .compatible = "omapdss,tpo,td028ttec1", },
+       /* keep to not break older DTB */
        { .compatible = "omapdss,toppoly,td028ttec1", },
        {},
 };
@@ -475,6 +477,7 @@ 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");
index b529a8c2b652cfa327ad0435024870e4b60c7ddc..3984716096aa0f3180e2817aec620473830dfb91 100644 (file)
@@ -455,6 +455,8 @@ static int td028ttec1_panel_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id td028ttec1_of_match[] = {
+       { .compatible = "omapdss,tpo,td028ttec1", },
+       /* keep to not break older DTB */
        { .compatible = "omapdss,toppoly,td028ttec1", },
        {},
 };
@@ -474,6 +476,7 @@ 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");