From 10615a28ea15dc9a48fc24b226d7ed3f16619112 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Sat, 21 Nov 2020 18:27:14 +0100 Subject: drm/bridge: samsung-dsim: add mode_fixup host op Some hosts need to change the mode flags passed on to the display controller. Add a mode_fixup host op to allow hosts to hook into this DRM bridge function. Signed-off-by: Lucas Stach --- include/drm/bridge/samsung-dsim.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/drm/bridge/samsung-dsim.h') diff --git a/include/drm/bridge/samsung-dsim.h b/include/drm/bridge/samsung-dsim.h index be8b4913aa9c..d644bb2f9e87 100644 --- a/include/drm/bridge/samsung-dsim.h +++ b/include/drm/bridge/samsung-dsim.h @@ -6,6 +6,7 @@ struct drm_encoder; struct samsung_dsim; struct platform_device; struct mipi_dsi_device; +struct drm_display_mode; enum exynos_reg_offset { EXYNOS_REG_OFS, @@ -45,6 +46,9 @@ enum reg_value_idx { struct samsung_dsim_host_ops { int (*attach)(struct device *dev, struct mipi_dsi_device *device); int (*detach)(struct device *dev, struct mipi_dsi_device *device); + bool (*mode_fixup)(struct device *dev, + const struct drm_display_mode *mode, + struct drm_display_mode *adjusted_mode); void (*te_handler)(struct device *dev); }; -- cgit v1.2.3