Skip to content

Commit 29fc897

Browse files
Laurent Pinchartsravnborg
authored andcommitted
drm: bridge: dw-hdmi: Remove unused field from dw_hdmi_plat_data
The input_bus_format field of struct dw_hdmi_plat_data is unused. Remove it. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20200526011505.31884-14-laurent.pinchart+renesas@ideasonboard.com
1 parent 49da7e5 commit 29fc897

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

drivers/gpu/drm/bridge/synopsys/dw-hdmi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,10 +2137,7 @@ static int dw_hdmi_setup(struct dw_hdmi *hdmi, struct drm_display_mode *mode)
21372137
hdmi->hdmi_data.video_mode.mpixelrepetitionoutput = 0;
21382138
hdmi->hdmi_data.video_mode.mpixelrepetitioninput = 0;
21392139

2140-
if (hdmi->plat_data->input_bus_format)
2141-
hdmi->hdmi_data.enc_in_bus_format =
2142-
hdmi->plat_data->input_bus_format;
2143-
else if (hdmi->hdmi_data.enc_in_bus_format == MEDIA_BUS_FMT_FIXED)
2140+
if (hdmi->hdmi_data.enc_in_bus_format == MEDIA_BUS_FMT_FIXED)
21442141
hdmi->hdmi_data.enc_in_bus_format = MEDIA_BUS_FMT_RGB888_1X24;
21452142

21462143
/* TOFIX: Get input encoding from plat data or fallback to none */

include/drm/bridge/dw_hdmi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ struct dw_hdmi_phy_ops {
125125
struct dw_hdmi_plat_data {
126126
struct regmap *regm;
127127

128-
unsigned long input_bus_format;
129128
unsigned long input_bus_encoding;
130129
bool use_drm_infoframe;
131130
bool ycbcr_420_allowed;

0 commit comments

Comments
 (0)