media: cec: set ev rather than v with CEC_PIN_EVENT_FL_DROPPED bit
authorColin Ian King <colin.king@canonical.com>
Wed, 18 Apr 2018 15:26:19 +0000 (11:26 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 20 Apr 2018 12:37:35 +0000 (08:37 -0400)
commit0fd6e1217303c98550de3552c65837c3f56729da
treef58beeb7f8f81fcb591c77986539665b23032d9a
parent29e61d6ef061b012d320327af7dbb3990e75be45
media: cec: set ev rather than v with CEC_PIN_EVENT_FL_DROPPED bit

Setting v with the CEC_PIN_EVENT_FL_DROPPED is incorrect, instead
ev should be set with this bit. Fix this.

Detected by CoverityScan, CID#1467974 ("Extra high-order bits")

Fixes: 6ec1cbf6b125 ("media: cec: improve CEC pin event handling")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-pin.c