Commit 353b6bf2 authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Walleij
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220915163437.2519754-1-weiyongjun@huaweicloud.com
parent b4c1b4ce
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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,