diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2020-02-20 15:07:00 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-02-22 15:16:56 +0300 |
commit | 6915db346039b3dfe65496d36de958cc7b12969b (patch) | |
tree | ce5b29cbbf0d4a27095f5a0382c40425dcf41ae5 /drivers/gpu/drm/panel | |
parent | fb0629eeeedb6622c16da1aa76a4520daf9a46e2 (diff) | |
download | linux-6915db346039b3dfe65496d36de958cc7b12969b.tar.xz |
drm/panel: ld9040: add MODULE_DEVICE_TABLE with SPI IDs
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>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200220120700.12257-1-m.szyprowski@samsung.com
Diffstat (limited to 'drivers/gpu/drm/panel')
-rw-r--r-- | drivers/gpu/drm/panel/panel-samsung-ld9040.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, |