[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
d062f91193
commit
e576d60bb2
@@ -30,6 +30,8 @@
|
||||
#include <media/media-devnode.h>
|
||||
#include <media/media-entity.h>
|
||||
|
||||
#ifdef CONFIG_MEDIA_CONTROLLER
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Userspace API
|
||||
*/
|
||||
@@ -495,3 +497,5 @@ struct media_device *media_device_find_devres(struct device *dev)
|
||||
return devres_find(dev, media_device_release_devres, NULL, NULL);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(media_device_find_devres);
|
||||
|
||||
#endif /* CONFIG_MEDIA_CONTROLLER */
|
||||
|
Reference in New Issue
Block a user