media: cec.h: add cec_msg_recv_is_rx/tx_result helpers
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 9 Mar 2022 10:55:43 +0000 (10:55 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 06:40:13 +0000 (07:40 +0100)
commit567f882a401346779d05a90beb8f21865ebdd398
tree6057ba90e62701ebc69ad211d848a77df1544dfd
parentf9d0ecbf56f4b90745a6adc5b59281ad8f70ab54
media: cec.h: add cec_msg_recv_is_rx/tx_result helpers

These two helper functions return true if the received message
contains the result of a previous non-blocking transmit. Either
the tx_status result (cec_msg_recv_is_tx_result) of the transmit,
or the rx_status result (cec_msg_recv_is_rx_result) of the reply
to the original transmit.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
include/uapi/linux/cec.h