]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media/cec.h: use IS_REACHABLE instead of IS_ENABLED
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 8 Jun 2017 18:37:44 +0000 (15:37 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 8 Jun 2017 19:52:28 +0000 (16:52 -0300)
commit7fec37b07a4f9de35e7ba39c7dbe8623550b882b
tree54691ad3544ff621a1cd8173a55fc91890e0d8e8
parent056c3f36f3e80d798b94531071812b5201b90608
[media] media/cec.h: use IS_REACHABLE instead of IS_ENABLED

Fix messages like this:

adv7842.c:(.text+0x2edadd): undefined reference to `cec_unregister_adapter'

when CEC_CORE=m but the driver including media/cec.h is built-in. In that case
the static inlines provided in media/cec.h should be used by that driver.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/media/cec.h