summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_audio.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-09-30 10:39:01 +0300
committerTakashi Iwai <tiwai@suse.de>2015-09-30 15:37:03 +0300
commit87f77eff710db012a994ee319b5627c26a7b2204 (patch)
tree6ef9fa251347800d8fdd558b80af2c4c3cb72a94 /drivers/gpu/drm/i915/intel_audio.c
parent7e8275c2f2bbb384e18af37066b8b2f32b7d092f (diff)
downloadlinux-87f77eff710db012a994ee319b5627c26a7b2204.tar.xz
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: kbuild test robot <fengguang.wu@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_audio.c')
-rw-r--r--drivers/gpu/drm/i915/intel_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index 30f6859dcb36..dffd0b4c5f17 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -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 */
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) ||
(mode->clock == TMDS_296M)) &&