diff options
author | Andi Drebes <lists-receive@programmierforen.de> | 2007-07-30 10:48:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:03:33 -0400 |
commit | af520a3478b59476ed61eddee73948807398e358 (patch) | |
tree | c7e20951334e6f2c9fd292e415ee4dae457cbf36 /drivers/media/dvb/ttpci | |
parent | 261efd12fc291e6b3b42011201bfd011484ad90b (diff) |
V4L/DVB (5941): Ttpci/budget-av.c: ARRAY_SIZE()
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 'drivers/media/dvb/ttpci')
-rw-r--r-- | drivers/media/dvb/ttpci/budget-av.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c index 0aee7a13a070..3439c9864f67 100644 --- a/drivers/media/dvb/ttpci/budget-av.c +++ b/drivers/media/dvb/ttpci/budget-av.c | |||
@@ -1232,7 +1232,7 @@ static struct saa7146_ext_vv vv_data = { | |||
1232 | .capabilities = 0, // perhaps later: V4L2_CAP_VBI_CAPTURE, but that need tweaking with the saa7113 | 1232 | .capabilities = 0, // perhaps later: V4L2_CAP_VBI_CAPTURE, but that need tweaking with the saa7113 |
1233 | .flags = 0, | 1233 | .flags = 0, |
1234 | .stds = &standard[0], | 1234 | .stds = &standard[0], |
1235 | .num_stds = sizeof(standard) / sizeof(struct saa7146_standard), | 1235 | .num_stds = ARRAY_SIZE(standard), |
1236 | .ioctls = &ioctls[0], | 1236 | .ioctls = &ioctls[0], |
1237 | .ioctl = av_ioctl, | 1237 | .ioctl = av_ioctl, |
1238 | }; | 1238 | }; |