]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] cec: fix confusing CEC_CAP_RC and IS_REACHABLE(CONFIG_RC_CORE) code
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 4 Apr 2017 16:43:33 +0000 (13:43 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 10 Apr 2017 16:15:29 +0000 (13:15 -0300)
commitee044f5be17fdba92b41ac68f136039bfce1d32b
tree5f1910465e130b227ccb7bbfc89b1f77c0ea0ff4
parent43c0c03961d0b19bd225a336897606b46e0021a6
[media] cec: fix confusing CEC_CAP_RC and IS_REACHABLE(CONFIG_RC_CORE) code

It is a bit confusing how CEC_CAP_RC and IS_REACHABLE(CONFIG_RC_CORE)
interact. By stripping CEC_CAP_RC at the beginning rather than after #else
it should be a bit clearer what is going on.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-core.c