diff options
Diffstat (limited to 'drivers/media/video/gspca/spca500.c')
-rw-r--r-- | drivers/media/video/gspca/spca500.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c index bca106c153fa..09ff69791da7 100644 --- a/drivers/media/video/gspca/spca500.c +++ b/drivers/media/video/gspca/spca500.c | |||
@@ -633,10 +633,10 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
633 | sd->subtype = id->driver_info; | 633 | sd->subtype = id->driver_info; |
634 | if (sd->subtype != LogitechClickSmart310) { | 634 | if (sd->subtype != LogitechClickSmart310) { |
635 | cam->cam_mode = vga_mode; | 635 | cam->cam_mode = vga_mode; |
636 | cam->nmodes = sizeof vga_mode / sizeof vga_mode[0]; | 636 | cam->nmodes = ARRAY_SIZE(vga_mode); |
637 | } else { | 637 | } else { |
638 | cam->cam_mode = sif_mode; | 638 | cam->cam_mode = sif_mode; |
639 | cam->nmodes = sizeof sif_mode / sizeof sif_mode[0]; | 639 | cam->nmodes = ARRAY_SIZE(sif_mode); |
640 | } | 640 | } |
641 | sd->qindex = 5; | 641 | sd->qindex = 5; |
642 | sd->brightness = BRIGHTNESS_DEF; | 642 | sd->brightness = BRIGHTNESS_DEF; |