summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/spca506.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-07-22 03:02:29 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-07-22 03:02:29 +0000
commit27ec6ede22cb9fd152a2701c4f24b7f54ffb5b2f (patch)
treee6dcf799c6fdd6ef783ded1d58600237aa649d20 /linux/drivers/media/video/gspca/spca506.c
parent232a32e4823887e382af8b96a5f21e7ab3891e21 (diff)
downloadmediapointer-dvb-s2-27ec6ede22cb9fd152a2701c4f24b7f54ffb5b2f.tar.gz
mediapointer-dvb-s2-27ec6ede22cb9fd152a2701c4f24b7f54ffb5b2f.tar.bz2
ARRAY_SIZE changes
From: Mauro Carvalho Chehab <mchehab@redhat.com> These changes were a direct result of using a semantic patch More information can be found at http://www.emn.fr/x-info/coccinelle/ Priority: normal [mchehab@redhat.com: fix a merge conflict] Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/spca506.c')
-rw-r--r--linux/drivers/media/video/gspca/spca506.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/spca506.c b/linux/drivers/media/video/gspca/spca506.c
index 3a0c893f9..a199298a6 100644
--- a/linux/drivers/media/video/gspca/spca506.c
+++ b/linux/drivers/media/video/gspca/spca506.c
@@ -286,7 +286,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
cam = &gspca_dev->cam;
cam->cam_mode = vga_mode;
- cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
+ cam->nmodes = ARRAY_SIZE(vga_mode);
sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value;
sd->contrast = sd_ctrls[SD_CONTRAST].qctrl.default_value;
sd->colors = sd_ctrls[SD_COLOR].qctrl.default_value;