[media] media: define Media Controller API when CONFIG_MEDIA_CONTROLLER enabled
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 5 Jun 2015 20:11:54 +0000 (17:11 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:05:48 +0000 (12:05 -0200)
commite576d60bb21e7add884f052ff0e5c28ebf7b7461
tree9fdca34693e5dcab450a1bdcee20817332bd5c6b
parentd062f91193dbd5a0c1d8469c8517ec8dd552c3f2
[media] media: define Media Controller API when CONFIG_MEDIA_CONTROLLER enabled

Change to define Media Controller API when CONFIG_MEDIA_CONTROLLER
is enabled. Define stubs for CONFIG_MEDIA_CONTROLLER disabled case.
This will help avoid drivers needing to enclose Media Controller
code within ifdef CONFIG_MEDIA_CONTROLLER block.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c
include/media/media-device.h