v4l2-mc.h: Add stubs for the V4L2 PM/pipeline routines
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 15:30:51 +0000 (12:30 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 15:30:51 +0000 (12:30 -0300)
Let's add stubs for the case where the Kernel gets compiled
without MEDIA_CONTROLLER.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/media/v4l2-mc.h

index 406f845034b96d81d238ba3c826379543398cc14..144b152e036257939248dabbce0ab89c2e14cc9a 100644 (file)
@@ -207,7 +207,7 @@ int v4l2_pipeline_pm_use(struct media_entity *entity, int use);
 int v4l2_pipeline_link_notify(struct media_link *link, u32 flags,
                              unsigned int notification);
 
-#else
+#else /* CONFIG_MEDIA_CONTROLLER */
 
 static inline int v4l2_mc_create_media_graph(struct media_device *mdev)
 {
@@ -228,5 +228,17 @@ static int v4l_vb2q_enable_media_source(struct vb2_queue *q)
 {
        return 0;
 }
-#endif
+
+int v4l2_pipeline_pm_use(struct media_entity *entity, int use);
+{
+       return 0;
+}
+
+int v4l2_pipeline_link_notify(struct media_link *link, u32 flags,
+                             unsigned int notification);
+{
+       return 0;
+}
+
+#endif /* CONFIG_MEDIA_CONTROLLER */
 #endif /* _V4L2_MC_H */
This page took 0.025658 seconds and 5 git commands to generate.