Skip to content

Commit

Permalink
V4L/DVB (12221): gspca - stv06xx-hdcs: Actually update the sensor state
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Erik Andrén authored and Mauro Carvalho Chehab committed Jul 24, 2009
1 parent 4be3bd7 commit 36a516d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ static int hdcs_set_state(struct sd *sd, enum hdcs_power_state state)
}

ret = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), val);
if (ret < 0)

/* Update the state if the write succeeded */
if (!ret)
hdcs->state = state;

return ret;
Expand Down

0 comments on commit 36a516d

Please sign in to comment.