Skip to content

Commit

Permalink
drm/bridge: ite-it66121: Drop hdmi_avi_infoframe_init() function call
Browse files Browse the repository at this point in the history
drm_hdmi_avi_infoframe_from_display_mode() called from
it66121_bridge_mode_set() already calls hdmi_avi_infoframe_init() to
initialize an HDMI AVI infoframe.  So, drop the redundant
hdmi_avi_infoframe_init() function call from it66121_bridge_mode_set().

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20241010092643.1048116-1-victor.liu@nxp.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241010092643.1048116-1-victor.liu@nxp.com
  • Loading branch information
Liu Ying authored and Neil Armstrong committed Oct 21, 2024
1 parent bf7c079 commit c767194
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/bridge/ite-it66121.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,6 @@ void it66121_bridge_mode_set(struct drm_bridge *bridge,

mutex_lock(&ctx->lock);

hdmi_avi_infoframe_init(&ctx->hdmi_avi_infoframe);

ret = drm_hdmi_avi_infoframe_from_display_mode(&ctx->hdmi_avi_infoframe, ctx->connector,
adjusted_mode);
if (ret) {
Expand Down

0 comments on commit c767194

Please sign in to comment.