aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2018-11-14 08:25:53 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 05:49:11 -0500
commit2e84eb9affac43eeaf834992888b72426a8cd442 (patch)
treebd782e7d1d0c7f79ddd4288c296453c3080a319e
parentmedia: cec-pin: fix broken tx_ignore_nack_until_eom error injection (diff)
downloadlinux-dev-2e84eb9affac43eeaf834992888b72426a8cd442.tar.xz
linux-dev-2e84eb9affac43eeaf834992888b72426a8cd442.zip
media: pulse8-cec: return 0 when invalidating the logical address
Return 0 when invalidating the logical address. The cec core produces a warning for drivers that do this. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reported-by: Torbjorn Jansson <torbjorn.jansson@mbox200.swipnet.se> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/usb/pulse8-cec/pulse8-cec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/pulse8-cec/pulse8-cec.c b/drivers/media/usb/pulse8-cec/pulse8-cec.c
index 365c78b748dd..b085b14f3f87 100644
--- a/drivers/media/usb/pulse8-cec/pulse8-cec.c
+++ b/drivers/media/usb/pulse8-cec/pulse8-cec.c
@@ -586,7 +586,7 @@ unlock:
else
pulse8->config_pending = true;
mutex_unlock(&pulse8->config_lock);
- return err;
+ return log_addr == CEC_LOG_ADDR_INVALID ? 0 : err;
}
static int pulse8_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,