aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/sunplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/sunplus.c')
-rw-r--r--drivers/media/video/gspca/sunplus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c
index eabad47a3ca6..e9481fa77749 100644
--- a/drivers/media/video/gspca/sunplus.c
+++ b/drivers/media/video/gspca/sunplus.c
@@ -841,7 +841,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
841/* case BRIDGE_SPCA504: */ 841/* case BRIDGE_SPCA504: */
842/* case BRIDGE_SPCA536: */ 842/* case BRIDGE_SPCA536: */
843 cam->cam_mode = vga_mode; 843 cam->cam_mode = vga_mode;
844 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0]; 844 cam->nmodes =ARRAY_SIZE(vga_mode);
845 break; 845 break;
846 case BRIDGE_SPCA533: 846 case BRIDGE_SPCA533:
847 cam->cam_mode = custom_mode; 847 cam->cam_mode = custom_mode;
@@ -852,7 +852,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
852 break; 852 break;
853 case BRIDGE_SPCA504C: 853 case BRIDGE_SPCA504C:
854 cam->cam_mode = vga_mode2; 854 cam->cam_mode = vga_mode2;
855 cam->nmodes = sizeof vga_mode2 / sizeof vga_mode2[0]; 855 cam->nmodes = ARRAY_SIZE(vga_mode2);
856 break; 856 break;
857 } 857 }
858 sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value; 858 sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value;