diff options
author | Erik Andr?n <erik.andren@gmail.com> | 2008-12-30 19:27:17 +0100 |
---|---|---|
committer | Erik Andr?n <erik.andren@gmail.com> | 2008-12-30 19:27:17 +0100 |
commit | f432c786231aa49d870920164745f6398096dc60 (patch) | |
tree | f442dbfdf31d4fa9f236913de4b498ca5bbfd5ea /linux/drivers/media/video/gspca/m5602/m5602_s5k83a.c | |
parent | aaec9d2ce358856c524d13dc51b02d4cc01fba8a (diff) | |
download | mediapointer-dvb-s2-f432c786231aa49d870920164745f6398096dc60.tar.gz mediapointer-dvb-s2-f432c786231aa49d870920164745f6398096dc60.tar.bz2 |
gspca - m5602: Rework v4l ctrl handling in all sensors
From: Erik Andr?n <erik.andren@gmail.com>
Previously, all sensors allocated a part of a large ctrl vector.
Define this vector separately for each sensor instead.
Priority: normal
Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602/m5602_s5k83a.c')
-rw-r--r-- | linux/drivers/media/video/gspca/m5602/m5602_s5k83a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.c b/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.c index 5ce69d74d..6880b3157 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.c +++ b/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.c @@ -66,7 +66,7 @@ sensor_found: sd->gspca_dev.cam.cam_mode = s5k83a.modes; sd->gspca_dev.cam.nmodes = s5k83a.nmodes; sd->desc->ctrls = s5k83a.ctrls; - sd->desc->nctrls = s5k83a.nctrls; + sd->desc->nctrls = ARRAY_SIZE(s5k83a_ctrls); return 0; } |