1 From 1871d718a9db649b70f0929d2778dc01bc49b286 Mon Sep 17 00:00:00 2001
2 From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
3 Date: Sun, 4 Sep 2016 09:56:33 -0300
4 Subject: [media] cx231xx: don't return error on success
6 From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
8 commit 1871d718a9db649b70f0929d2778dc01bc49b286 upstream.
10 The cx231xx_set_agc_analog_digital_mux_select() callers
11 expect it to return 0 or an error. Returning a positive value
12 makes the first attempt to switch between analog/digital to fail.
14 Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 drivers/media/usb/cx231xx/cx231xx-avcore.c | 5 ++++-
19 1 file changed, 4 insertions(+), 1 deletion(-)
21 --- a/drivers/media/usb/cx231xx/cx231xx-avcore.c
22 +++ b/drivers/media/usb/cx231xx/cx231xx-avcore.c
23 @@ -1264,7 +1264,10 @@ int cx231xx_set_agc_analog_digital_mux_s
24 dev->board.agc_analog_digital_select_gpio,
34 int cx231xx_enable_i2c_port_3(struct cx231xx *dev, bool is_port_3)