Commit 2e84eb9a authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

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: default avatarHans Verkuil <hans.verkuil@cisco.com>
Reported-by: default avatarTorbjorn Jansson <torbjorn.jansson@mbox200.swipnet.se>
Signed-off-by: default avatarHans Verkuil <hansverk@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent ac791f19
...@@ -586,7 +586,7 @@ static int pulse8_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr) ...@@ -586,7 +586,7 @@ static int pulse8_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr)
else else
pulse8->config_pending = true; pulse8->config_pending = true;
mutex_unlock(&pulse8->config_lock); 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, static int pulse8_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment