This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] V4L: soc-camera: add helper functions for videobuf queue 
handling
Author:  Guennadi Liakhovetski <[email protected]>
Date:    Mon Feb 7 18:09:30 2011 -0300

Add two helper inline functions to retrieve soc-camera device context
from videobuf and videobuf2 queue pointers.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 include/media/soc_camera.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=32e8e27586f9b72aa36cd7568b047c5fe97498f1

diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index e29ff74..6e96b26 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -306,6 +306,16 @@ static inline struct video_device 
*soc_camera_i2c_to_vdev(struct i2c_client *cli
        return icd->vdev;
 }
 
+static inline struct soc_camera_device *soc_camera_from_vb2q(struct vb2_queue 
*vq)
+{
+       return container_of(vq, struct soc_camera_device, vb2_vidq);
+}
+
+static inline struct soc_camera_device *soc_camera_from_vbq(struct 
videobuf_queue *vq)
+{
+       return container_of(vq, struct soc_camera_device, vb_vidq);
+}
+
 void soc_camera_lock(struct vb2_queue *vq);
 void soc_camera_unlock(struct vb2_queue *vq);
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to