drm/panel: ld9040: add MODULE_DEVICE_TABLE with SPI IDs
diff mbox series

Message ID 20200220120700.12257-1-m.szyprowski@samsung.com
State Not Applicable
Headers show
Series
  • drm/panel: ld9040: add MODULE_DEVICE_TABLE with SPI IDs
Related show

Commit Message

Marek Szyprowski Feb. 20, 2020, 12:07 p.m. UTC
Add proper MODULE_DEVICE_TABLE structure with SPI IDs to allow proper
creation of SPI modalias string and fix autoloading module for this driver.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 drivers/gpu/drm/panel/panel-samsung-ld9040.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Sam Ravnborg Feb. 22, 2020, 12:17 p.m. UTC | #1
Hi Marek.

On Thu, Feb 20, 2020 at 01:07:00PM +0100, Marek Szyprowski wrote:
> Add proper MODULE_DEVICE_TABLE structure with SPI IDs to allow proper
> creation of SPI modalias string and fix autoloading module for this driver.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

Thanks,

applied to drm-misc-next.

	Sam

Patch
diff mbox series

diff --git a/drivers/gpu/drm/panel/panel-samsung-ld9040.c b/drivers/gpu/drm/panel/panel-samsung-ld9040.c
index 3c52f15f7a1c..9bb2e8c7934a 100644
--- a/drivers/gpu/drm/panel/panel-samsung-ld9040.c
+++ b/drivers/gpu/drm/panel/panel-samsung-ld9040.c
@@ -373,6 +373,12 @@  static const struct of_device_id ld9040_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, ld9040_of_match);
 
+static const struct spi_device_id ld9040_ids[] = {
+	{ "ld9040", },
+	{ /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(spi, ld9040_ids);
+
 static struct spi_driver ld9040_driver = {
 	.probe = ld9040_probe,
 	.remove = ld9040_remove,