diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2022-09-15 16:34:31 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-10-03 21:49:50 +0200 |
commit | b4c1b4ce5d273c9d2be360f6a655aeeb884f67e3 (patch) | |
tree | 351b2993acc5ccd977065404224dff2118f170b7 /drivers/gpu/drm/panel/panel-tpo-tpg110.c | |
parent | bd8eb086611a7eb6bd03da2f4c3bddc64d082201 (diff) |
drm/panel: tpg110: Silent no spi_device_id warning
Add spi_device_id entries to silent following SPI warning:
SPI driver tpo-tpg110-panel has no spi_device_id for tpo,tpg110
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220915163431.2519736-1-weiyongjun@huaweicloud.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-tpo-tpg110.c')
-rw-r--r-- | drivers/gpu/drm/panel/panel-tpo-tpg110.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-tpo-tpg110.c b/drivers/gpu/drm/panel/panel-tpo-tpg110.c index 0b1f5a11a055..845304435e23 100644 --- a/drivers/gpu/drm/panel/panel-tpo-tpg110.c +++ b/drivers/gpu/drm/panel/panel-tpo-tpg110.c @@ -463,9 +463,16 @@ static const struct of_device_id tpg110_match[] = { }; MODULE_DEVICE_TABLE(of, tpg110_match); +static const struct spi_device_id tpg110_ids[] = { + { "tpg110" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, tpg110_ids); + static struct spi_driver tpg110_driver = { .probe = tpg110_probe, .remove = tpg110_remove, + .id_table = tpg110_ids, .driver = { .name = "tpo-tpg110-panel", .of_match_table = tpg110_match, |