]> 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)
commita5fda07d294d2bcaf2fda19f60d0ba1616697ef4
tree54691ad3544ff621a1cd8173a55fc91890e0d8e8
parent62c6fcc611fa0e76fab4e97339db25a473e37f7d
[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