]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95066597d39c8ef564d24910cd0ba86a376a0d34
tree6057ba90e62701ebc69ad211d848a77df1544dfd
parentdb470fb4d5f075c0c533b46e48b0d59f3c29784d
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