Jérémy Lefaure c7d234dc67 drm/gma500: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also,
it is useless to re-invent it.

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: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171016023047.19145-1-jeremy.lefaure@lse.epita.fr
2017-10-16 11:29:05 +02:00
..
2016-12-15 14:55:33 +02:00
2017-05-08 17:15:14 -07:00
2014-09-24 11:43:41 +10:00
2016-12-15 14:55:34 +02:00
2012-11-07 10:59:32 +10:00
2016-01-04 07:57:38 +01:00
2013-04-07 17:09:34 +02:00
2017-10-16 11:29:05 +02:00