summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/mars.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-20 10:58:02 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-20 10:58:02 -0200
commit4bed69bfcb36161bcd89a7a61b6a912c32fea813 (patch)
treeb40092bb4cc41424343b1a4fd3d90b63f7f01fb3 /linux/drivers/media/video/gspca/mars.c
parentf7addb7035dedd9ba701c586fec16b234dde4a77 (diff)
parentc6f9ed52d0eb5d04c1c65914976d81315a872839 (diff)
downloadmediapointer-dvb-s2-4bed69bfcb36161bcd89a7a61b6a912c32fea813.tar.gz
mediapointer-dvb-s2-4bed69bfcb36161bcd89a7a61b6a912c32fea813.tar.bz2
merge: http://linuxtv.org/hg/~pinchartl/uvcvideo
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/mars.c')
-rw-r--r--linux/drivers/media/video/gspca/mars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/mars.c b/linux/drivers/media/video/gspca/mars.c
index 277ca34a8..492cdd3b5 100644
--- a/linux/drivers/media/video/gspca/mars.c
+++ b/linux/drivers/media/video/gspca/mars.c
@@ -123,7 +123,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
cam = &gspca_dev->cam;
cam->epaddr = 0x01;
cam->cam_mode = vga_mode;
- cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
+ cam->nmodes = ARRAY_SIZE(vga_mode);
sd->qindex = 1; /* set the quantization table */
return 0;
}