summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-07-30 11:48:10 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-30 11:48:10 -0300
commit2c07c7014085afdacec6ddca46cea1329c66209e (patch)
tree9a3e2a7fa744a40cdb8d2995ee8965b59b8f2689 /linux
parentfce4ea1d7df78bf790a8b889524374f8b1db446c (diff)
downloadmediapointer-dvb-s2-2c07c7014085afdacec6ddca46cea1329c66209e.tar.gz
mediapointer-dvb-s2-2c07c7014085afdacec6ddca46cea1329c66209e.tar.bz2
Ttpci/budget-av.c: ARRAY_SIZE()
From: Andi Drebes <lists-receive@programmierforen.de> 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>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-av.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-av.c b/linux/drivers/media/dvb/ttpci/budget-av.c
index 0aee7a13a..3439c9864 100644
--- a/linux/drivers/media/dvb/ttpci/budget-av.c
+++ b/linux/drivers/media/dvb/ttpci/budget-av.c
@@ -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,
};