提交 87f77eff 编写于 作者: T Takashi Iwai

drm/i915: Add missing const to audio_rate_need_prog()

The lack of const leads to a compile warning after merging i915
upstream tree:
   drivers/gpu/drm/i915/intel_audio.c:147:13: note: expected 'struct drm_display_mode *' but argument is of type 'const struct drm_display_mode *'
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 7e8275c2
...@@ -144,7 +144,7 @@ static uint32_t audio_config_setup_n_reg(int n, uint32_t val) ...@@ -144,7 +144,7 @@ static uint32_t audio_config_setup_n_reg(int n, uint32_t val)
/* check whether N/CTS/M need be set manually */ /* check whether N/CTS/M need be set manually */
static bool audio_rate_need_prog(struct intel_crtc *crtc, static bool audio_rate_need_prog(struct intel_crtc *crtc,
struct drm_display_mode *mode) const struct drm_display_mode *mode)
{ {
if (((mode->clock == TMDS_297M) || if (((mode->clock == TMDS_297M) ||
(mode->clock == TMDS_296M)) && (mode->clock == TMDS_296M)) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册