summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc/pwc.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-06-26 08:51:19 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 22:53:44 +0200
commit3b4d0ec79113e77b3fe90749ae00bfa015c73048 (patch)
tree133f6101d89262b4393ca535ee61c2979f35dbf0 /drivers/media/video/pwc/pwc.h
parent[media] pwc: Remove some unused PWC_INT_PIPE left overs (diff)
downloadlinux-3b4d0ec79113e77b3fe90749ae00bfa015c73048.tar.xz
linux-3b4d0ec79113e77b3fe90749ae00bfa015c73048.zip
[media] pwc: Make power-saving a per device option
as vcinterface must be set before calling pwc_camera_power() Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc/pwc.h')
-rw-r--r--drivers/media/video/pwc/pwc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/pwc/pwc.h b/drivers/media/video/pwc/pwc.h
index f4aa386477c8..7013318997fd 100644
--- a/drivers/media/video/pwc/pwc.h
+++ b/drivers/media/video/pwc/pwc.h
@@ -176,6 +176,7 @@ struct pwc_device
char vsnapshot; /* snapshot mode */
char vsync; /* used by isoc handler */
char vmirror; /* for ToUCaM series */
+ char power_save; /* Do powersaving for this cam */
int cmd_len;
unsigned char cmd_buf[13];
@@ -290,7 +291,7 @@ extern int pwc_set_dynamic_noise(struct pwc_device *pdev, int noise);
extern int pwc_get_dynamic_noise(struct pwc_device *pdev, int *noise);
/* Power down or up the camera; not supported by all models */
-extern int pwc_camera_power(struct pwc_device *pdev, int power);
+extern void pwc_camera_power(struct pwc_device *pdev, int power);
/* Private ioctl()s; see pwc-ioctl.h */
extern long pwc_ioctl(struct pwc_device *pdev, unsigned int cmd, void *arg);