diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-17 09:24:24 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-17 09:24:24 -0300 |
commit | 55478ad148cbf89cd3d99872759960c8411ada6d (patch) | |
tree | c373940b8c3fce70457f6e12e1feaa2330472db7 /linux/drivers/media/video/soc_camera_platform.c | |
parent | 2f1835af8f95aeed8b722b47fcb6a70651f6e1a2 (diff) | |
parent | fc0873bc5a230ed74a66d4b1caa99ec3fe9aefa1 (diff) | |
download | mediapointer-dvb-s2-55478ad148cbf89cd3d99872759960c8411ada6d.tar.gz mediapointer-dvb-s2-55478ad148cbf89cd3d99872759960c8411ada6d.tar.bz2 |
merge: http://linuxtv.org/hg/~gliakhovetski/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/soc_camera_platform.c')
-rw-r--r-- | linux/drivers/media/video/soc_camera_platform.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/linux/drivers/media/video/soc_camera_platform.c b/linux/drivers/media/video/soc_camera_platform.c index 1adc257eb..bb7a9d480 100644 --- a/linux/drivers/media/video/soc_camera_platform.c +++ b/linux/drivers/media/video/soc_camera_platform.c @@ -18,15 +18,7 @@ #include <linux/videodev2.h> #include <media/v4l2-common.h> #include <media/soc_camera.h> - -struct soc_camera_platform_info { - int iface; - char *format_name; - unsigned long format_depth; - struct v4l2_pix_format format; - unsigned long bus_param; - int (*set_capture)(struct soc_camera_platform_info *info, int enable); -}; +#include <media/soc_camera_platform.h> struct soc_camera_platform_priv { struct soc_camera_platform_info *info; @@ -44,11 +36,21 @@ soc_camera_platform_get_info(struct soc_camera_device *icd) static int soc_camera_platform_init(struct soc_camera_device *icd) { + struct soc_camera_platform_info *p = soc_camera_platform_get_info(icd); + + if (p->power) + p->power(1); + return 0; } static int soc_camera_platform_release(struct soc_camera_device *icd) { + struct soc_camera_platform_info *p = soc_camera_platform_get_info(icd); + + if (p->power) + p->power(0); + return 0; } |