Jérémy Lefaure e40d14a897 media: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also,
it is not always useful to use a variable to store this constant
calculated at compile time.

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))
)

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Reviewed-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-08 10:11:00 -05:00
..
2015-08-11 07:10:04 -03:00
2017-12-08 10:11:00 -05:00
2016-01-25 12:01:08 -02:00
2016-11-13 10:02:22 -08:00
2017-02-27 18:43:47 -08:00
2017-03-24 15:24:00 +01:00
2016-03-03 09:26:05 -03:00
2015-04-08 15:02:07 -03:00
2016-09-22 12:55:49 -03:00
2017-02-27 18:43:47 -08:00