drm/rockchip: dsi2: separate the of_device_id array by different SoC

Separate the process of device matching by the different SoC macro
definitions, which can reduce memory usage.

Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Ic0f02bee51a6520e48568aecce92acf5d0ae31e4
This commit is contained in:
Guochun Huang
2024-11-27 17:50:30 +08:00
committed by Tao Huang
parent dc1407e301
commit 59cb08abbf

View File

@@ -2066,13 +2066,18 @@ static const struct dw_mipi_dsi2_plat_data rk3588_mipi_dsi2_plat_data = {
};
static const struct of_device_id dw_mipi_dsi2_dt_ids[] = {
#if IS_ENABLED(CONFIG_CPU_RK3576)
{
.compatible = "rockchip,rk3576-mipi-dsi2",
.data = &rk3576_mipi_dsi2_plat_data,
}, {
},
#endif
#if IS_ENABLED(CONFIG_CPU_RK3588)
{
.compatible = "rockchip,rk3588-mipi-dsi2",
.data = &rk3588_mipi_dsi2_plat_data,
},
#endif
{}
};
MODULE_DEVICE_TABLE(of, dw_mipi_dsi2_dt_ids);