summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-09-09 14:06:50 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-04 00:28:59 +0400
commit443f483aa2494b93d73ba122cafdf2ef89989ed7 (patch)
tree8b94a6d4ef0696c0b9310dd2bb7bdadee1eb7249 /include
parent14178aa57ce6ac4f05b4df8ea9e010486ce83a76 (diff)
downloadlinux-443f483aa2494b93d73ba122cafdf2ef89989ed7.tar.xz
[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')
-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
return soc_camera_to_subdev(icd);
}
-static inline struct soc_camera_device *soc_camera_from_i2c(const struct i2c_client *client)
-{
- return client->dev.platform_data;
-}
-
static inline struct soc_camera_device *soc_camera_from_vb2q(const struct vb2_queue *vq)
{
return container_of(vq, struct soc_camera_device, vb2_vidq);