mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user