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/sonixj.c | |
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/sonixj.c')
-rw-r--r-- | drivers/media/video/gspca/sonixj.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index e657b8ba6db7..5380b4323a70 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -948,8 +948,8 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
948 | return 0; | 948 | return 0; |
949 | } | 949 | } |
950 | 950 | ||
951 | /* this function is called at open time */ | 951 | /* this function is called at probe and resume time */ |
952 | static int sd_open(struct gspca_dev *gspca_dev) | 952 | static int sd_init(struct gspca_dev *gspca_dev) |
953 | { | 953 | { |
954 | struct sd *sd = (struct sd *) gspca_dev; | 954 | struct sd *sd = (struct sd *) gspca_dev; |
955 | /* const __u8 *sn9c1xx; */ | 955 | /* const __u8 *sn9c1xx; */ |
@@ -1353,14 +1353,6 @@ static void sd_stopN(struct gspca_dev *gspca_dev) | |||
1353 | reg_w1(gspca_dev, 0xf1, 0x00); | 1353 | reg_w1(gspca_dev, 0xf1, 0x00); |
1354 | } | 1354 | } |
1355 | 1355 | ||
1356 | static void sd_stop0(struct gspca_dev *gspca_dev) | ||
1357 | { | ||
1358 | } | ||
1359 | |||
1360 | static void sd_close(struct gspca_dev *gspca_dev) | ||
1361 | { | ||
1362 | } | ||
1363 | |||
1364 | static void do_autogain(struct gspca_dev *gspca_dev) | 1356 | static void do_autogain(struct gspca_dev *gspca_dev) |
1365 | { | 1357 | { |
1366 | struct sd *sd = (struct sd *) gspca_dev; | 1358 | struct sd *sd = (struct sd *) gspca_dev; |
@@ -1548,11 +1540,9 @@ static const struct sd_desc sd_desc = { | |||
1548 | .ctrls = sd_ctrls, | 1540 | .ctrls = sd_ctrls, |
1549 | .nctrls = ARRAY_SIZE(sd_ctrls), | 1541 | .nctrls = ARRAY_SIZE(sd_ctrls), |
1550 | .config = sd_config, | 1542 | .config = sd_config, |
1551 | .open = sd_open, | 1543 | .init = sd_init, |
1552 | .start = sd_start, | 1544 | .start = sd_start, |
1553 | .stopN = sd_stopN, | 1545 | .stopN = sd_stopN, |
1554 | .stop0 = sd_stop0, | ||
1555 | .close = sd_close, | ||
1556 | .pkt_scan = sd_pkt_scan, | 1546 | .pkt_scan = sd_pkt_scan, |
1557 | .dq_callback = do_autogain, | 1547 | .dq_callback = do_autogain, |
1558 | }; | 1548 | }; |