aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/pac207.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/pac207.c')
-rw-r--r--drivers/media/video/gspca/pac207.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c
index e6b5c8a5b5d9..a15bccad947b 100644
--- a/drivers/media/video/gspca/pac207.c
+++ b/drivers/media/video/gspca/pac207.c
@@ -273,8 +273,8 @@ static int sd_config(struct gspca_dev *gspca_dev,
273 return 0; 273 return 0;
274} 274}
275 275
276/* this function is called at open time */ 276/* this function is called at probe and resume time */
277static int sd_open(struct gspca_dev *gspca_dev) 277static int sd_init(struct gspca_dev *gspca_dev)
278{ 278{
279 pac207_write_reg(gspca_dev, 0x41, 0x00); 279 pac207_write_reg(gspca_dev, 0x41, 0x00);
280 /* Bit_0=Image Format, 280 /* Bit_0=Image Format,
@@ -338,15 +338,6 @@ static void sd_stopN(struct gspca_dev *gspca_dev)
338 pac207_write_reg(gspca_dev, 0x0f, 0x00); /* Power Control */ 338 pac207_write_reg(gspca_dev, 0x0f, 0x00); /* Power Control */
339} 339}
340 340
341static void sd_stop0(struct gspca_dev *gspca_dev)
342{
343}
344
345/* this function is called at close time */
346static void sd_close(struct gspca_dev *gspca_dev)
347{
348}
349
350static void pac207_do_auto_gain(struct gspca_dev *gspca_dev) 341static void pac207_do_auto_gain(struct gspca_dev *gspca_dev)
351{ 342{
352 struct sd *sd = (struct sd *) gspca_dev; 343 struct sd *sd = (struct sd *) gspca_dev;
@@ -532,11 +523,9 @@ static const struct sd_desc sd_desc = {
532 .ctrls = sd_ctrls, 523 .ctrls = sd_ctrls,
533 .nctrls = ARRAY_SIZE(sd_ctrls), 524 .nctrls = ARRAY_SIZE(sd_ctrls),
534 .config = sd_config, 525 .config = sd_config,
535 .open = sd_open, 526 .init = sd_init,
536 .start = sd_start, 527 .start = sd_start,
537 .stopN = sd_stopN, 528 .stopN = sd_stopN,
538 .stop0 = sd_stop0,
539 .close = sd_close,
540 .dq_callback = pac207_do_auto_gain, 529 .dq_callback = pac207_do_auto_gain,
541 .pkt_scan = sd_pkt_scan, 530 .pkt_scan = sd_pkt_scan,
542}; 531};