diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-08-26 08:03:51 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-08-26 08:03:51 +0200 |
commit | 9e60449d4bd9eb32a8eab36e880e8db117cd2850 (patch) | |
tree | 56b6d18337c65839e18df95e284b834df7c022eb /linux/drivers/media/video/gspca/tv8532.c | |
parent | 263b1fa0031100d972907961e145719913b4ce15 (diff) | |
download | mediapointer-dvb-s2-9e60449d4bd9eb32a8eab36e880e8db117cd2850.tar.gz mediapointer-dvb-s2-9e60449d4bd9eb32a8eab36e880e8db117cd2850.tar.bz2 |
gspca: Change some subdriver functions for suspend/resume.
From: Jean-Francois Moine <moinejf@free.fr>
- new function 'init' called on probe and resume
- remove the functions 'open' and 'closed'
- 'stopN' and 'stop0' are optional
Priority: high
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/tv8532.c')
-rw-r--r-- | linux/drivers/media/video/gspca/tv8532.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/linux/drivers/media/video/gspca/tv8532.c b/linux/drivers/media/video/gspca/tv8532.c index c55dbe8ac..01de48d4e 100644 --- a/linux/drivers/media/video/gspca/tv8532.c +++ b/linux/drivers/media/video/gspca/tv8532.c @@ -331,8 +331,8 @@ static void tv_8532_PollReg(struct gspca_dev *gspca_dev) } } -/* this function is called at open time */ -static int sd_open(struct gspca_dev *gspca_dev) +/* this function is called at probe and resume time */ +static int sd_init(struct gspca_dev *gspca_dev) { reg_w_1(gspca_dev, TV8532_AD_SLOPE, 0x32); reg_w_1(gspca_dev, TV8532_AD_BITCTRL, 0x00); @@ -450,14 +450,6 @@ static void sd_stopN(struct gspca_dev *gspca_dev) reg_w_1(gspca_dev, TV8532_GPIO_OE, 0x0b); } -static void sd_stop0(struct gspca_dev *gspca_dev) -{ -} - -static void sd_close(struct gspca_dev *gspca_dev) -{ -} - static void tv8532_preprocess(struct gspca_dev *gspca_dev) { struct sd *sd = (struct sd *) gspca_dev; @@ -620,11 +612,9 @@ static const struct sd_desc sd_desc = { .ctrls = sd_ctrls, .nctrls = ARRAY_SIZE(sd_ctrls), .config = sd_config, - .open = sd_open, + .init = sd_init, .start = sd_start, .stopN = sd_stopN, - .stop0 = sd_stop0, - .close = sd_close, .pkt_scan = sd_pkt_scan, }; |