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

Commit 1871d718 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] cx231xx: don't return error on success



The cx231xx_set_agc_analog_digital_mux_select() callers
expect it to return 0 or an error. Returning a positive value
makes the first attempt to switch between analog/digital to fail.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 505a0ea7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1264,7 +1264,10 @@ int cx231xx_set_agc_analog_digital_mux_select(struct cx231xx *dev,
				   dev->board.agc_analog_digital_select_gpio,
				   analog_or_digital);

	if (status < 0)
		return status;

	return 0;
}

int cx231xx_enable_i2c_port_3(struct cx231xx *dev, bool is_port_3)