summaryrefslogtreecommitdiffstats
path: root/include/media/soc_camera_platform.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2008-10-17 00:49:27 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-17 22:25:29 +0200
commit50c616fd0b43f50379aa70da96fd350312367367 (patch)
tree5cbbbcebc9deac66406a86e53c475e00fb3da6e6 /include/media/soc_camera_platform.h
parentV4L/DVB (9240): saa7127: Fix two typos (diff)
downloadlinux-50c616fd0b43f50379aa70da96fd350312367367.tar.xz
linux-50c616fd0b43f50379aa70da96fd350312367367.zip
V4L/DVB (9241): soc-camera: move sensor power management to soc_camera_platform.c
Switching sensors on and off is now done by sensor drivers themselves, typically using platform-provided hooks. Update soc_camera_platform.c to do the same. Also remove a refundant struct soc_camera_platform_info definition from soc_camera_platform.c. Tested-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/soc_camera_platform.h')
-rw-r--r--include/media/soc_camera_platform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/soc_camera_platform.h b/include/media/soc_camera_platform.h
index 851f18220984..7c81ad32b1e5 100644
--- a/include/media/soc_camera_platform.h
+++ b/include/media/soc_camera_platform.h
@@ -9,6 +9,7 @@ struct soc_camera_platform_info {
unsigned long format_depth;
struct v4l2_pix_format format;
unsigned long bus_param;
+ void (*power)(int);
int (*set_capture)(struct soc_camera_platform_info *info, int enable);
};