[media] cec: fix Kconfig dependency problems
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 1 Jul 2016 10:33:10 +0000 (07:33 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 21:34:00 +0000 (18:34 -0300)
commit5bb2399a4fe4a1703c1497b4838c5e8e869d0822
tree7a253cb5c009c25e5074a07abc002b1ed9f39eb2
parentea8c535e30c1066a0bf8acb2d39bb3c4e643a034
[media] cec: fix Kconfig dependency problems

- Use IS_REACHABLE(RC_CORE) instead of IS_ENABLED: if cec is built-in and
  RC_CORE is a module, then CEC can't reach the RC symbols.
- Both cec and cec-edid should be bool and use the same build 'mode' as
  MEDIA_SUPPORT (just as is done for the media controller code).
- Add a note to staging that this should be changed once the cec framework
  is moved out of staging.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/Kconfig
drivers/media/Makefile
drivers/staging/media/cec/Kconfig
drivers/staging/media/cec/Makefile
drivers/staging/media/cec/TODO
drivers/staging/media/cec/cec-adap.c
drivers/staging/media/cec/cec-core.c