]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/i915: Add missing const to audio_rate_need_prog()
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 Sep 2015 07:39:01 +0000 (09:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 30 Sep 2015 12:37:03 +0000 (14:37 +0200)
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>
drivers/gpu/drm/i915/intel_audio.c

index 30f6859dcb3667e59724dbd65928dd5ffedd5851..dffd0b4c5f1792a994592f7166342af3f112545c 100644 (file)
@@ -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)) &&