drm/i915: Add missing const to audio_rate_need_prog()
Subsystems (2)
PATCH 1/1 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 *'
--- drivers/gpu/drm/i915/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_audio.c +1 -1
@@ -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)) &&
Signature · 6 lines
2.5.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Takashi Iwai
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 'structdrm_display_mode*' but argument is of type 'const structdrm_display_mode*'Reported-by kbuild test robot <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Yup, I have that in my merge resolution in drm-intel-nightly when pull in your sound tree.
Atm I don't see a need for another merge on my side, I'll ping you when that happens. So probably simplest to apply this to the sound tree.
Cheers, Daniel
Quoted 24 lines
--- drivers/gpu/drm/i915/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_audio.c +1
-1@@ -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)) &&Signature · 6 lines
2.5.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 9 lines · Daniel Vetter
Quoted 6 lines · Takashi Iwai
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 'structdrm_display_mode*' but argument is of type 'const structdrm_display_mode*'Reported-by kbuild test robot <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Quoted 7 lines
Yup, I have that in my merge resolution in drm-intel-nightly when pull in your sound tree.
Reviewed-by Daniel Vetter <[email protected]>Atm I don't see a need for another merge on my side, I'll ping you when that happens. So probably simplest to apply this to the sound tree.
OK, done.
thanks,
Takashi
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx