Commit 19305134 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Tomi Valkeinen

drm/panel: lg-lb035q02: Fix SPI alias

The panel-lg-lb035q02 driver incorrectly includes the OF vendor prefix
in its SPI alias. Fix it, and move the manual alias to an SPI module
device table.

Fixes: f5b0c654 ("drm/panel: Add driver for the LG Philips LB035Q02 panel")
Reported-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191007170801.27647-2-laurent.pinchart@ideasonboard.comAcked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent b6559bf3
...@@ -220,9 +220,17 @@ static const struct of_device_id lb035q02_of_match[] = { ...@@ -220,9 +220,17 @@ static const struct of_device_id lb035q02_of_match[] = {
MODULE_DEVICE_TABLE(of, lb035q02_of_match); MODULE_DEVICE_TABLE(of, lb035q02_of_match);
static const struct spi_device_id lb035q02_ids[] = {
{ "lb035q02", 0 },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(spi, lb035q02_ids);
static struct spi_driver lb035q02_driver = { static struct spi_driver lb035q02_driver = {
.probe = lb035q02_probe, .probe = lb035q02_probe,
.remove = lb035q02_remove, .remove = lb035q02_remove,
.id_table = lb035q02_ids,
.driver = { .driver = {
.name = "panel-lg-lb035q02", .name = "panel-lg-lb035q02",
.of_match_table = lb035q02_of_match, .of_match_table = lb035q02_of_match,
...@@ -231,7 +239,6 @@ static struct spi_driver lb035q02_driver = { ...@@ -231,7 +239,6 @@ static struct spi_driver lb035q02_driver = {
module_spi_driver(lb035q02_driver); module_spi_driver(lb035q02_driver);
MODULE_ALIAS("spi:lgphilips,lb035q02");
MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>"); MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>");
MODULE_DESCRIPTION("LG.Philips LB035Q02 LCD Panel driver"); MODULE_DESCRIPTION("LG.Philips LB035Q02 LCD Panel driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment