MLK-17796: hdp: Remove duplicate define variable cur_mode
authorSandor Yu <Sandor.yu@nxp.com>
Wed, 14 Mar 2018 02:45:10 +0000 (10:45 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:56:55 +0000 (14:56 -0500)
variable cur_mode have define in struct of imx_hdp.video.
so remove it in stuct imx_hdp.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
drivers/gpu/drm/imx/hdp/imx-hdp-audio.c
drivers/gpu/drm/imx/hdp/imx-hdp.c
drivers/gpu/drm/imx/hdp/imx-hdp.h

index 6624b8a..05cfe89 100644 (file)
@@ -66,7 +66,7 @@ static u32 imx_hdp_audio(struct imx_hdp *hdmi, AUDIO_TYPE type, u32 sample_rate,
        AUDIO_WIDTH bits;
        int ncts_n;
        state_struct *state = &hdmi->state;
-       int idx_n = select_N_index(hdmi->cur_mode->clock);
+       int idx_n = select_N_index(hdmi->video.cur_mode.clock);
 
        switch (sample_rate) {
        case 32000:
index 8d8ba39..5bb7fec 100644 (file)
@@ -483,7 +483,6 @@ static void imx_hdp_mode_setup(struct imx_hdp *hdp, struct drm_display_mode *mod
 
        /* Get vic of CEA-861 */
        hdp->vic = drm_match_cea_mode(mode);
-       hdp->cur_mode = mode;
 }
 
 bool imx_hdp_bridge_mode_fixup(struct drm_bridge *bridge,
index 61759d4..472335b 100644 (file)
@@ -232,7 +232,6 @@ struct imx_hdp {
        VIC_PXL_ENCODING_FORMAT format;
        bool hdr_metadata_present;
        bool hdr_mode;
-       struct drm_display_mode *cur_mode;
 };
 
 void imx_hdp_register_audio_driver(struct device *dev);