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.

Change-Id: I1f3c6db5df2bb8e1c6cd732b7943a0a429a5348c
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Git-commit: c94cdc1e0c3589856de9d4ecafeeffdb349a8e0b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[vvalluru@codeaurora.org: resolved path conflicts]
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
3 files changed