From: Laurent Pinchart Date: Wed, 4 Aug 2021 16:21:41 +0000 (+0300) Subject: drm: xlnx: zynqmp_dpsub: Constify mode argument to function X-Git-Tag: v6.6.17~5843^2~29^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d693bd3b5b640fadc1d2d310b9bc7256cfdc557c;p=platform%2Fkernel%2Flinux-rpi.git drm: xlnx: zynqmp_dpsub: Constify mode argument to function The zynqmp_dp_encoder_mode_set_transfer_unit() function takes a mode pointer argument that it doesn't need to modify. Make it const. Signed-off-by: Laurent Pinchart --- diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c index 10e469c..a2d8754 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_dp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_dp.c @@ -1195,7 +1195,7 @@ static int zynqmp_dp_set_format(struct zynqmp_dp *dp, */ static void zynqmp_dp_encoder_mode_set_transfer_unit(struct zynqmp_dp *dp, - struct drm_display_mode *mode) + const struct drm_display_mode *mode) { u32 tu = ZYNQMP_DP_MSA_TRANSFER_UNIT_SIZE_TU_SIZE_DEF; u32 bw, vid_kbytes, avg_bytes_per_tu, init_wait;