linux/drivers/gpu/drm/via
Jérémy Lefaure 2e20c9ddae drm/via: 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: 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/20171016023357.20174-1-jeremy.lefaure@lse.epita.fr
2017-10-16 11:29:28 +02:00
..
Makefile drm/via: remove unneeded -Iinclude/drm compiler flag 2017-05-18 07:14:05 +02:00
via_3d_reg.h
via_dma.c
via_dmablit.c drm/via: use get_user_pages_unlocked() 2017-02-28 10:00:50 +01:00
via_dmablit.h
via_drv.c drm/pci: Deprecate drm_pci_init/exit completely 2017-06-20 10:41:03 +02:00
via_drv.h drm: Change the return type of the unload hook to void 2017-01-09 11:25:22 +01:00
via_irq.c
via_map.c drm: Change the return type of the unload hook to void 2017-01-09 11:25:22 +01:00
via_mm.c drm: Improve drm_mm search (and fix topdown allocation) with rbtrees 2017-02-03 11:10:32 +01:00
via_verifier.c drm/via: use ARRAY_SIZE 2017-10-16 11:29:28 +02:00
via_verifier.h
via_video.c