Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36a516d9 authored by Erik Andrén's avatar Erik Andrén Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (12221): gspca - stv06xx-hdcs: Actually update the sensor state

parent 4be3bd78
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;