linux/drivers/gpu/drm/amd
Jérémy Lefaure c1b24a1405 drm/amdgpu: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code.

Found with Coccinelle with the following semantic patch:
@r depends on (org || report)@
type T;
T[] E;
position p;
@@
(
 (sizeof(E)@p /sizeof(*E))
|
 (sizeof(E)@p /sizeof(E[...]))
|
 (sizeof(E)@p /sizeof(T))
)

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-10-19 15:27:11 -04:00
..
acp
amdgpu drm/amdgpu: use ARRAY_SIZE 2017-10-19 15:27:11 -04:00
amdkfd Linux 4.14-rc3 2017-10-03 09:35:04 +10:00
include drm/amdgpu: add uvd enc registers in header 2017-10-06 17:43:53 -04:00
lib drm/amd/chash: Fix typo 2017-09-28 16:03:29 -04:00
powerplay drm/amd/pp: remove polaris10_smc/smumgr split. 2017-10-19 15:26:57 -04:00
scheduler drm/amd/sched: fix job tear down order v2 2017-10-19 15:27:08 -04:00