drm: xlnx: zynqmp_dpsub: Remplace hardcoded values with ARRAY_SIZE()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 6 Aug 2021 11:29:52 +0000 (14:29 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 19 Oct 2022 13:51:03 +0000 (16:51 +0300)
commit531306f54e84b9502f18db66f81729df7bc5fbe3
tree03a5324acc3d6216bca4e83245421033ac180357
parent98c4ecec55d3bd2a8a79eba0adee0285724ea50f
drm: xlnx: zynqmp_dpsub: Remplace hardcoded values with ARRAY_SIZE()

Use the ARRAY_SIZE() macro to iterate over arrays, instead of hardcoding
their size. This makes the code less error-prone should the array size
change.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/xlnx/zynqmp_disp.c