mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 06:14:42 +08:00
drm/bridge/synopsys: dsi: extend the prototype of mode_valid()
To evaluate the validity of a video mode, some additional internal value has to be passed to the platform implementation. Extend the prototype of mode_valid(). Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com> Reviewed-by: Philippe Cornu <philippe.cornu@foss.st.com> Signed-off-by: Robert Foss <robert.foss@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20211218215055.212421-2-antonio.borneo@foss.st.com
This commit is contained in:
parent
22f99f2db4
commit
5f4f958a0d
@ -998,7 +998,10 @@ dw_mipi_dsi_bridge_mode_valid(struct drm_bridge *bridge,
|
||||
enum drm_mode_status mode_status = MODE_OK;
|
||||
|
||||
if (pdata->mode_valid)
|
||||
mode_status = pdata->mode_valid(pdata->priv_data, mode);
|
||||
mode_status = pdata->mode_valid(pdata->priv_data, mode,
|
||||
dsi->mode_flags,
|
||||
dw_mipi_dsi_get_lanes(dsi),
|
||||
dsi->format);
|
||||
|
||||
return mode_status;
|
||||
}
|
||||
|
@ -51,7 +51,9 @@ struct dw_mipi_dsi_plat_data {
|
||||
unsigned int max_data_lanes;
|
||||
|
||||
enum drm_mode_status (*mode_valid)(void *priv_data,
|
||||
const struct drm_display_mode *mode);
|
||||
const struct drm_display_mode *mode,
|
||||
unsigned long mode_flags,
|
||||
u32 lanes, u32 format);
|
||||
|
||||
const struct dw_mipi_dsi_phy_ops *phy_ops;
|
||||
const struct dw_mipi_dsi_host_ops *host_ops;
|
||||
|
Loading…
Reference in New Issue
Block a user