aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Karas <lukas.karas@centrum.cz>2009-01-21 11:14:07 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:46 -0400
commitc41507ba06c2fbe5a1de908ef5bd1b2c4d9b13c0 (patch)
tree4acef477750971ae95a42c92b749b15c08cda25e
parentcde41bb292c5f5475213ebed96cd5f18b51ecd48 (diff)
V4L/DVB (11634): gspca - m5602-s5k83a: Set the sensor_settings pointer correctly
Signed-off-by: Lukas Karas <lukas.karas@centrum.cz> Signed-off-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/m5602/m5602_s5k83a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k83a.c b/drivers/media/video/gspca/m5602/m5602_s5k83a.c
index 118ec8f8cbdf..942030fd0cf7 100644
--- a/drivers/media/video/gspca/m5602/m5602_s5k83a.c
+++ b/drivers/media/video/gspca/m5602/m5602_s5k83a.c
@@ -199,7 +199,8 @@ sensor_found:
199int s5k83a_init(struct sd *sd) 199int s5k83a_init(struct sd *sd)
200{ 200{
201 int i, err = 0; 201 int i, err = 0;
202 s32 *sensor_settings = sd->sensor_priv; 202 s32 *sensor_settings =
203 ((struct s5k83a_priv *) sd->sensor_priv)->settings;
203 204
204 for (i = 0; i < ARRAY_SIZE(init_s5k83a) && !err; i++) { 205 for (i = 0; i < ARRAY_SIZE(init_s5k83a) && !err; i++) {
205 u8 data[2] = {0x00, 0x00}; 206 u8 data[2] = {0x00, 0x00};