[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)
commitf9f314f323951a33d8b4a4f63f7d04b7f3bc0603
tree54691ad3544ff621a1cd8173a55fc91890e0d8e8
parentb94aac64a4c17c5af92f9b4ba7164c5b384d5c02
[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