Skip to content

Commit 89dcc9e

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_hdmi: Remove unused members of struct mtk_hdmi
The hdmi_colorspace csp member of struct mtk_hdmi is initialized once but then it's never used at all. Remove said member and the only assignment to it as a cleanup. Also remove the ibias, ibias_up, min_clock, max_clock, min_hdisplay and max_vdisplay members, as those were really completely unused. This commit brings no functional changes. Reviewed-by: CK Hu <[email protected]> Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Link: https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent e2e4f07 commit 89dcc9e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/gpu/drm/mediatek/mtk_hdmi.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,9 @@ struct mtk_hdmi {
163163
struct clk *clk[MTK_HDMI_CLK_COUNT];
164164
struct drm_display_mode mode;
165165
bool dvi_mode;
166-
u32 min_clock;
167-
u32 max_clock;
168-
u32 max_hdisplay;
169-
u32 max_vdisplay;
170-
u32 ibias;
171-
u32 ibias_up;
172166
struct regmap *sys_regmap;
173167
unsigned int sys_offset;
174168
void __iomem *regs;
175-
enum hdmi_colorspace csp;
176169
struct platform_device *audio_pdev;
177170
struct hdmi_audio_param aud_param;
178171
bool audio_enable;
@@ -1072,7 +1065,6 @@ static int mtk_hdmi_output_init(struct mtk_hdmi *hdmi)
10721065
{
10731066
struct hdmi_audio_param *aud_param = &hdmi->aud_param;
10741067

1075-
hdmi->csp = HDMI_COLORSPACE_RGB;
10761068
aud_param->aud_codec = HDMI_AUDIO_CODING_TYPE_PCM;
10771069
aud_param->aud_sample_size = HDMI_AUDIO_SAMPLE_SIZE_16;
10781070
aud_param->aud_input_type = HDMI_AUD_INPUT_I2S;

0 commit comments

Comments
 (0)