diff options
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r-- | drivers/media/video/gspca/gspca.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index 5cb584546ee6..2596568e82fd 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -154,6 +154,9 @@ struct gspca_dev { | |||
154 | struct mutex queue_lock; /* ISOC queue protection */ | 154 | struct mutex queue_lock; /* ISOC queue protection */ |
155 | __u32 sequence; /* frame sequence number */ | 155 | __u32 sequence; /* frame sequence number */ |
156 | char streaming; | 156 | char streaming; |
157 | #ifdef CONFIG_PM | ||
158 | char frozen; /* suspend - resume */ | ||
159 | #endif | ||
157 | char users; /* number of opens */ | 160 | char users; /* number of opens */ |
158 | char present; /* device connected */ | 161 | char present; /* device connected */ |
159 | char nbufread; /* number of buffers for read() */ | 162 | char nbufread; /* number of buffers for read() */ |
@@ -173,6 +176,10 @@ struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev, | |||
173 | struct gspca_frame *frame, | 176 | struct gspca_frame *frame, |
174 | const __u8 *data, | 177 | const __u8 *data, |
175 | int len); | 178 | int len); |
179 | #ifdef CONFIG_PM | ||
180 | int gspca_suspend(struct usb_interface *intf, pm_message_t message); | ||
181 | int gspca_resume(struct usb_interface *intf); | ||
182 | #endif | ||
176 | int gspca_auto_gain_n_exposure(struct gspca_dev *gspca_dev, int avg_lum, | 183 | int gspca_auto_gain_n_exposure(struct gspca_dev *gspca_dev, int avg_lum, |
177 | int desired_avg_lum, int deadzone, int gain_knee, int exposure_knee); | 184 | int desired_avg_lum, int deadzone, int gain_knee, int exposure_knee); |
178 | #endif /* GSPCAV2_H */ | 185 | #endif /* GSPCAV2_H */ |