drm/amd/powerplay: use ARRAY_SIZE() to calculate array size.
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Fri, 13 May 2016 17:36:40 +0000 (23:06 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 May 2016 16:17:25 +0000 (12:17 -0400)
commita7aabcc8a5f5e7834abb538ad97db04d29968fbe
tree94d34ff277c71ec509f10469dae609cdd57af179
parent484f689fc9d4eb91c68f53e97dc355b1b06c3edb
drm/amd/powerplay: use ARRAY_SIZE() to calculate array size.

It is preferred to use ARRAY_SIZE() for size calculation, instead
using sizeof(array)/sizeof(*array). It makes the code more readable.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.c