mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
cde41bb292
commit
c41507ba06
1 changed files with 2 additions and 1 deletions
|
@ -199,7 +199,8 @@ int s5k83a_probe(struct sd *sd)
|
|||
int s5k83a_init(struct sd *sd)
|
||||
{
|
||||
int i, err = 0;
|
||||
s32 *sensor_settings = sd->sensor_priv;
|
||||
s32 *sensor_settings =
|
||||
((struct s5k83a_priv *) sd->sensor_priv)->settings;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(init_s5k83a) && !err; i++) {
|
||||
u8 data[2] = {0x00, 0x00};
|
||||
|
|
Loading…
Reference in a new issue