aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/vc032x.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/vc032x.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/vc032x.c')
-rw-r--r--drivers/media/video/gspca/vc032x.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c
index 5454f0eb0077..f8c3ff30e464 100644
--- a/drivers/media/video/gspca/vc032x.c
+++ b/drivers/media/video/gspca/vc032x.c
@@ -1477,8 +1477,8 @@ static int sd_config(struct gspca_dev *gspca_dev,
1477 return 0; 1477 return 0;
1478} 1478}
1479 1479
1480/* this function is called at open time */ 1480/* this function is called at probe and time */
1481static int sd_open(struct gspca_dev *gspca_dev) 1481static int sd_init(struct gspca_dev *gspca_dev)
1482{ 1482{
1483 return 0; 1483 return 0;
1484} 1484}
@@ -1640,19 +1640,6 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
1640 reg_w(dev, 0x89, 0xffff, 0xffff); 1640 reg_w(dev, 0x89, 0xffff, 0xffff);
1641} 1641}
1642 1642
1643/* this function is called at close time */
1644static void sd_close(struct gspca_dev *gspca_dev)
1645{
1646/* struct usb_device *dev = gspca_dev->dev;
1647 __u8 buffread;
1648
1649 reg_w(dev, 0x89, 0xffff, 0xffff);
1650 reg_w(dev, 0xa0, 0x01, 0xb301);
1651 reg_w(dev, 0xa0, 0x09, 0xb303);
1652 reg_w(dev, 0x89, 0xffff, 0xffff);
1653*/
1654}
1655
1656static void sd_pkt_scan(struct gspca_dev *gspca_dev, 1643static void sd_pkt_scan(struct gspca_dev *gspca_dev,
1657 struct gspca_frame *frame, /* target */ 1644 struct gspca_frame *frame, /* target */
1658 __u8 *data, /* isoc packet */ 1645 __u8 *data, /* isoc packet */
@@ -1741,11 +1728,10 @@ static const struct sd_desc sd_desc = {
1741 .ctrls = sd_ctrls, 1728 .ctrls = sd_ctrls,
1742 .nctrls = ARRAY_SIZE(sd_ctrls), 1729 .nctrls = ARRAY_SIZE(sd_ctrls),
1743 .config = sd_config, 1730 .config = sd_config,
1744 .open = sd_open, 1731 .init = sd_init,
1745 .start = sd_start, 1732 .start = sd_start,
1746 .stopN = sd_stopN, 1733 .stopN = sd_stopN,
1747 .stop0 = sd_stop0, 1734 .stop0 = sd_stop0,
1748 .close = sd_close,
1749 .pkt_scan = sd_pkt_scan, 1735 .pkt_scan = sd_pkt_scan,
1750 .querymenu = sd_querymenu, 1736 .querymenu = sd_querymenu,
1751}; 1737};