drm/amd/display: use ARRAY_SIZE for base60_refresh_rates
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 9 Jun 2021 10:09:26 +0000 (18:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Jun 2021 15:44:26 +0000 (11:44 -0400)
commitd0b3bbd32f278fb7125133fda755f9d17cf597ad
tree4286e05c0ff6c3c495750d4e21ca1528c31bd7b9
parent5d9f730193557be217680d54fa0be6c985f0f328
drm/amd/display: use ARRAY_SIZE for base60_refresh_rates

Use ARRAY_SIZE instead of dividing sizeof array with sizeof an
element.

Clean up the following coccicheck warning:

./drivers/gpu/drm/amd/display/dc/core/dc_resource.c:448:47-48: WARNING:
Use ARRAY_SIZE.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c