diff options
Diffstat (limited to 'include/media/soc_camera.h')
-rw-r--r-- | include/media/soc_camera.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index e29ff74fbe32..6e96b2657b5c 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 | |||
306 | return icd->vdev; | 306 | return icd->vdev; |
307 | } | 307 | } |
308 | 308 | ||
309 | static inline struct soc_camera_device *soc_camera_from_vb2q(struct vb2_queue *vq) | ||
310 | { | ||
311 | return container_of(vq, struct soc_camera_device, vb2_vidq); | ||
312 | } | ||
313 | |||
314 | static inline struct soc_camera_device *soc_camera_from_vbq(struct videobuf_queue *vq) | ||
315 | { | ||
316 | return container_of(vq, struct soc_camera_device, vb_vidq); | ||
317 | } | ||
318 | |||
309 | void soc_camera_lock(struct vb2_queue *vq); | 319 | void soc_camera_lock(struct vb2_queue *vq); |
310 | void soc_camera_unlock(struct vb2_queue *vq); | 320 | void soc_camera_unlock(struct vb2_queue *vq); |
311 | 321 | ||