diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2017-10-16 04:30:46 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-10-16 11:29:05 +0200 |
commit | c7d234dc671d17c4c9b89fd30102a2fc619ecf7e (patch) | |
tree | 8dc31811d65284c5895f5bdeb1a70d5ec20eb98c /include | |
parent | drm/sun4i: hdmi: Move PAD_CTRL1 setting to mode_set function (diff) | |
download | linux-c7d234dc671d17c4c9b89fd30102a2fc619ecf7e.tar.xz linux-c7d234dc671d17c4c9b89fd30102a2fc619ecf7e.zip |
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
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions