V4L/DVB (5941): Ttpci/budget-av.c: ARRAY_SIZE()
authorAndi Drebes <lists-receive@programmierforen.de>
Mon, 30 Jul 2007 14:48:10 +0000 (11:48 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:03:33 +0000 (22:03 -0300)
This patch replaces an array size calculation done using sizeof
with an invocation of the ARRAY_SIZE macro.

Tested by compilation on an i386 box using "allyesconfig".
Diffed against Linus' git-tree.

Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/ttpci/budget-av.c

index 0aee7a13a070f4fdcf87f24339030a10bf46a547..3439c9864f67084e538239f2b3ba316b3a165b16 100644 (file)
@@ -1232,7 +1232,7 @@ static struct saa7146_ext_vv vv_data = {
        .capabilities = 0,      // perhaps later: V4L2_CAP_VBI_CAPTURE, but that need tweaking with the saa7113
        .flags = 0,
        .stds = &standard[0],
-       .num_stds = sizeof(standard) / sizeof(struct saa7146_standard),
+       .num_stds = ARRAY_SIZE(standard),
        .ioctls = &ioctls[0],
        .ioctl = av_ioctl,
 };