aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/zc3xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/zc3xx.c')
-rw-r--r--drivers/media/video/gspca/zc3xx.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c
index e78b9b7591d5..f4239b442c11 100644
--- a/drivers/media/video/gspca/zc3xx.c
+++ b/drivers/media/video/gspca/zc3xx.c
@@ -7171,8 +7171,8 @@ static int sd_config(struct gspca_dev *gspca_dev,
7171 return 0; 7171 return 0;
7172} 7172}
7173 7173
7174/* this function is called at open time */ 7174/* this function is called at probe and resume time */
7175static int sd_open(struct gspca_dev *gspca_dev) 7175static int sd_init(struct gspca_dev *gspca_dev)
7176{ 7176{
7177 reg_w(gspca_dev->dev, 0x01, 0x0000); 7177 reg_w(gspca_dev->dev, 0x01, 0x0000);
7178 return 0; 7178 return 0;
@@ -7333,10 +7333,6 @@ static void sd_start(struct gspca_dev *gspca_dev)
7333 } 7333 }
7334} 7334}
7335 7335
7336static void sd_stopN(struct gspca_dev *gspca_dev)
7337{
7338}
7339
7340static void sd_stop0(struct gspca_dev *gspca_dev) 7336static void sd_stop0(struct gspca_dev *gspca_dev)
7341{ 7337{
7342 struct sd *sd = (struct sd *) gspca_dev; 7338 struct sd *sd = (struct sd *) gspca_dev;
@@ -7344,11 +7340,6 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
7344 send_unknown(gspca_dev->dev, sd->sensor); 7340 send_unknown(gspca_dev->dev, sd->sensor);
7345} 7341}
7346 7342
7347/* this function is called at close time */
7348static void sd_close(struct gspca_dev *gspca_dev)
7349{
7350}
7351
7352static void sd_pkt_scan(struct gspca_dev *gspca_dev, 7343static void sd_pkt_scan(struct gspca_dev *gspca_dev,
7353 struct gspca_frame *frame, 7344 struct gspca_frame *frame,
7354 __u8 *data, 7345 __u8 *data,
@@ -7508,11 +7499,9 @@ static const struct sd_desc sd_desc = {
7508 .ctrls = sd_ctrls, 7499 .ctrls = sd_ctrls,
7509 .nctrls = sizeof sd_ctrls / sizeof sd_ctrls[0], 7500 .nctrls = sizeof sd_ctrls / sizeof sd_ctrls[0],
7510 .config = sd_config, 7501 .config = sd_config,
7511 .open = sd_open, 7502 .init = sd_init,
7512 .start = sd_start, 7503 .start = sd_start,
7513 .stopN = sd_stopN,
7514 .stop0 = sd_stop0, 7504 .stop0 = sd_stop0,
7515 .close = sd_close,
7516 .pkt_scan = sd_pkt_scan, 7505 .pkt_scan = sd_pkt_scan,
7517 .querymenu = sd_querymenu, 7506 .querymenu = sd_querymenu,
7518}; 7507};