aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/mars.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-09-03 16:12:16 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-03 17:37:35 -0400
commit012d6b029ec17f45374303bbdccd0bc206725751 (patch)
tree35f0613ea11178ac7d3ffc2a779460121e673287 /drivers/media/video/gspca/mars.c
parent66e4124f41808b50f6e1b6771621d6c7bf1c34a6 (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/mars.c')
-rw-r--r--drivers/media/video/gspca/mars.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c
index d7e209578186..281475913a61 100644
--- a/drivers/media/video/gspca/mars.c
+++ b/drivers/media/video/gspca/mars.c
@@ -144,8 +144,8 @@ static int sd_config(struct gspca_dev *gspca_dev,
144 return 0; 144 return 0;
145} 145}
146 146
147/* this function is called at open time */ 147/* this function is called at probe and resume time */
148static int sd_open(struct gspca_dev *gspca_dev) 148static int sd_init(struct gspca_dev *gspca_dev)
149{ 149{
150 return 0; 150 return 0;
151} 151}
@@ -358,14 +358,6 @@ static void sd_stopN(struct gspca_dev *gspca_dev)
358 PDEBUG(D_ERR, "Camera Stop failed"); 358 PDEBUG(D_ERR, "Camera Stop failed");
359} 359}
360 360
361static void sd_stop0(struct gspca_dev *gspca_dev)
362{
363}
364
365static void sd_close(struct gspca_dev *gspca_dev)
366{
367}
368
369static void sd_pkt_scan(struct gspca_dev *gspca_dev, 361static void sd_pkt_scan(struct gspca_dev *gspca_dev,
370 struct gspca_frame *frame, /* target */ 362 struct gspca_frame *frame, /* target */
371 __u8 *data, /* isoc packet */ 363 __u8 *data, /* isoc packet */
@@ -411,11 +403,9 @@ static const struct sd_desc sd_desc = {
411 .ctrls = sd_ctrls, 403 .ctrls = sd_ctrls,
412 .nctrls = ARRAY_SIZE(sd_ctrls), 404 .nctrls = ARRAY_SIZE(sd_ctrls),
413 .config = sd_config, 405 .config = sd_config,
414 .open = sd_open, 406 .init = sd_init,
415 .start = sd_start, 407 .start = sd_start,
416 .stopN = sd_stopN, 408 .stopN = sd_stopN,
417 .stop0 = sd_stop0,
418 .close = sd_close,
419 .pkt_scan = sd_pkt_scan, 409 .pkt_scan = sd_pkt_scan,
420}; 410};
421 411