[media] cec: add cec_transmit_attempt_done helper function
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 7 Jun 2017 14:46:10 +0000 (11:46 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 09:52:33 +0000 (06:52 -0300)
commitc94cdc1e0c3589856de9d4ecafeeffdb349a8e0b
treeca1b349082b02d9284872d81f51d21858908b657
parent135327899d2874f2b65b3a3626b37d87df9e6a05
[media] cec: add cec_transmit_attempt_done helper function

A simpler variant of cec_transmit_done to be used where the HW does
just a single attempt at a transmit. So if the status indicates an
error, then the corresponding error count will always be 1 and this
function figures that out based on the status argument.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/media/kapi/cec-core.rst
drivers/media/cec/cec-adap.c
include/media/cec.h