aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-09-09 06:06:50 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-03 16:28:59 -0400
commit443f483aa2494b93d73ba122cafdf2ef89989ed7 (patch)
tree8b94a6d4ef0696c0b9310dd2bb7bdadee1eb7249 /include/media
parent14178aa57ce6ac4f05b4df8ea9e010486ce83a76 (diff)
[media] V4L: mt9m001, mt9v022: use internally cached pixel code
Using the internally cached pixel code, instead of the one, provided by the soc-camera, removes one more use of struct soc_camera_device in these drivers. Also remove the no longer needed soc_camera_from_i2c() inline function. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/soc_camera.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 67a52c729eff..dac57598ee57 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -269,11 +269,6 @@ static inline struct v4l2_subdev *soc_camera_vdev_to_subdev(const struct video_d
269 return soc_camera_to_subdev(icd); 269 return soc_camera_to_subdev(icd);
270} 270}
271 271
272static inline struct soc_camera_device *soc_camera_from_i2c(const struct i2c_client *client)
273{
274 return client->dev.platform_data;
275}
276
277static inline struct soc_camera_device *soc_camera_from_vb2q(const struct vb2_queue *vq) 272static inline struct soc_camera_device *soc_camera_from_vb2q(const struct vb2_queue *vq)
278{ 273{
279 return container_of(vq, struct soc_camera_device, vb2_vidq); 274 return container_of(vq, struct soc_camera_device, vb2_vidq);