aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/spca501.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-07-21 23:02:29 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:19:05 -0400
commitd6f76b979c9f83aaf2fa3d51eb5b175690f7acbc (patch)
treedbe05b97981155a5bdae6e8dee2653e0cfad34c2 /drivers/media/video/gspca/spca501.c
parent3227c860b6c96f97671e9373c14a280429956928 (diff)
V4L/DVB (12478): ARRAY_SIZE changes
These changes were a direct result of using a semantic patch More information can be found at http://www.emn.fr/x-info/coccinelle/ [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 'drivers/media/video/gspca/spca501.c')
-rw-r--r--drivers/media/video/gspca/spca501.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c
index d48b27c648ca..b74a34218da0 100644
--- a/drivers/media/video/gspca/spca501.c
+++ b/drivers/media/video/gspca/spca501.c
@@ -1923,7 +1923,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
1923 1923
1924 cam = &gspca_dev->cam; 1924 cam = &gspca_dev->cam;
1925 cam->cam_mode = vga_mode; 1925 cam->cam_mode = vga_mode;
1926 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0]; 1926 cam->nmodes = ARRAY_SIZE(vga_mode);
1927 sd->subtype = id->driver_info; 1927 sd->subtype = id->driver_info;
1928 sd->brightness = sd_ctrls[MY_BRIGHTNESS].qctrl.default_value; 1928 sd->brightness = sd_ctrls[MY_BRIGHTNESS].qctrl.default_value;
1929 sd->contrast = sd_ctrls[MY_CONTRAST].qctrl.default_value; 1929 sd->contrast = sd_ctrls[MY_CONTRAST].qctrl.default_value;