diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2022-09-15 16:34:37 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-10-03 21:50:53 +0200 |
commit | 353b6bf2c4f14f0049cc8db5c2cca26882ff76b4 (patch) | |
tree | 4cc58a777e80a0e8d9a6aa72e08de73b1c4826e1 | |
parent | b4c1b4ce5d273c9d2be360f6a655aeeb884f67e3 (diff) | |
download | linux-353b6bf2c4f14f0049cc8db5c2cca26882ff76b4.tar.bz2 |
drm/panel: ws2401: Silent no spi_device_id warning
Add spi_device_id entries to silent following SPI warning:
SPI driver ws2401-panel has no spi_device_id for samsung,lms380kf01
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220915163437.2519754-1-weiyongjun@huaweicloud.com
-rw-r--r-- | drivers/gpu/drm/panel/panel-widechips-ws2401.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-widechips-ws2401.c b/drivers/gpu/drm/panel/panel-widechips-ws2401.c index 236f3cb2b594..2591ff8f0d4e 100644 --- a/drivers/gpu/drm/panel/panel-widechips-ws2401.c +++ b/drivers/gpu/drm/panel/panel-widechips-ws2401.c @@ -425,9 +425,16 @@ static const struct of_device_id ws2401_match[] = { }; MODULE_DEVICE_TABLE(of, ws2401_match); +static const struct spi_device_id ws2401_ids[] = { + { "lms380kf01" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, ws2401_ids); + static struct spi_driver ws2401_driver = { .probe = ws2401_probe, .remove = ws2401_remove, + .id_table = ws2401_ids, .driver = { .name = "ws2401-panel", .of_match_table = ws2401_match, |