summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-09-16 02:47:41 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-17 20:34:59 +0100
commitaedc1c75ff6affa30e37e7d1a3a48d6686eefe6f (patch)
tree6fee2a98cc42e80b9639de9b58d78c10cb52f485
parentacdb4a6b24ff4e2c1ecdcd5529ac5b5a22789d47 (diff)
downloadlinux-stable-aedc1c75ff6affa30e37e7d1a3a48d6686eefe6f.tar.gz
linux-stable-aedc1c75ff6affa30e37e7d1a3a48d6686eefe6f.tar.bz2
linux-stable-aedc1c75ff6affa30e37e7d1a3a48d6686eefe6f.zip
media: cec.h: CEC_OP_REC_FLAG_ values were swapped
commit 806e0cdfee0b99efbb450f9f6e69deb7118602fc upstream. CEC_OP_REC_FLAG_NOT_USED is 0 and CEC_OP_REC_FLAG_USED is 1, not the other way around. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: Jiunn Chang <c0d1n61at3@gmail.com> Cc: <stable@vger.kernel.org> # for v4.10 and up Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--include/uapi/linux/cec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/cec.h b/include/uapi/linux/cec.h
index 3094af68b6e7..d6ba68880cef 100644
--- a/include/uapi/linux/cec.h
+++ b/include/uapi/linux/cec.h
@@ -767,8 +767,8 @@ struct cec_event {
#define CEC_MSG_SELECT_DIGITAL_SERVICE 0x93
#define CEC_MSG_TUNER_DEVICE_STATUS 0x07
/* Recording Flag Operand (rec_flag) */
-#define CEC_OP_REC_FLAG_USED 0
-#define CEC_OP_REC_FLAG_NOT_USED 1
+#define CEC_OP_REC_FLAG_NOT_USED 0
+#define CEC_OP_REC_FLAG_USED 1
/* Tuner Display Info Operand (tuner_display_info) */
#define CEC_OP_TUNER_DISPLAY_INFO_DIGITAL 0
#define CEC_OP_TUNER_DISPLAY_INFO_NONE 1