diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-09-03 16:12:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 17:37:35 -0400 |
commit | 012d6b029ec17f45374303bbdccd0bc206725751 (patch) | |
tree | 35f0613ea11178ac7d3ffc2a779460121e673287 /drivers/media/video/gspca/gspca.h | |
parent | 66e4124f41808b50f6e1b6771621d6c7bf1c34a6 (diff) |
V4L/DVB (8822): gspca: Change some subdriver functions for suspend/resume.
- new function 'init' called on probe and resume
- remove the functions 'open' and 'closed'
- 'stopN' and 'stop0' are optional
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r-- | drivers/media/video/gspca/gspca.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index a804ef18b8d..7c2f44b2397 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -90,15 +90,14 @@ struct sd_desc { | |||
90 | /* controls */ | 90 | /* controls */ |
91 | const struct ctrl *ctrls; | 91 | const struct ctrl *ctrls; |
92 | int nctrls; | 92 | int nctrls; |
93 | /* operations */ | 93 | /* mandatory operations */ |
94 | cam_cf_op config; /* called on probe */ | 94 | cam_cf_op config; /* called on probe */ |
95 | cam_op open; /* called on open */ | 95 | cam_op init; /* called on probe and resume */ |
96 | cam_v_op start; /* called on stream on */ | 96 | cam_v_op start; /* called on stream on */ |
97 | cam_v_op stopN; /* called on stream off - main alt */ | ||
98 | cam_v_op stop0; /* called on stream off - alt 0 */ | ||
99 | cam_v_op close; /* called on close */ | ||
100 | cam_pkt_op pkt_scan; | 97 | cam_pkt_op pkt_scan; |
101 | /* optional operations */ | 98 | /* optional operations */ |
99 | cam_v_op stopN; /* called on stream off - main alt */ | ||
100 | cam_v_op stop0; /* called on stream off - alt 0 */ | ||
102 | cam_v_op dq_callback; /* called when a frame has been dequeued */ | 101 | cam_v_op dq_callback; /* called when a frame has been dequeued */ |
103 | cam_jpg_op get_jcomp; | 102 | cam_jpg_op get_jcomp; |
104 | cam_jpg_op set_jcomp; | 103 | cam_jpg_op set_jcomp; |