summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/horus3a.h
diff options
context:
space:
mode:
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>2017-10-01 21:30:41 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-08 16:11:00 +0100
commite40d14a89760632238f67c1f96c852652a137f2d (patch)
tree3c9a1c7729242a9725254a1ffe3e6a5de40da63d /drivers/media/dvb-frontends/horus3a.h
parentmedia: gspca: Convert PDEBUG to gspca_dbg (diff)
downloadlinux-e40d14a89760632238f67c1f96c852652a137f2d.tar.xz
linux-e40d14a89760632238f67c1f96c852652a137f2d.zip
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>
Diffstat (limited to 'drivers/media/dvb-frontends/horus3a.h')
0 files changed, 0 insertions, 0 deletions