diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-12-04 23:38:58 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-12-04 23:38:58 -0500 |
commit | 054facc8aaa344e502809faa5f04d775f08e65b7 (patch) | |
tree | 66bffd3bc76585610d16e7dd9077bfdcdf781a48 | |
parent | 25289f75953279c4ccb40b2324ef7aaa93e75b19 (diff) | |
download | mediapointer-dvb-s2-054facc8aaa344e502809faa5f04d775f08e65b7.tar.gz mediapointer-dvb-s2-054facc8aaa344e502809faa5f04d775f08e65b7.tar.bz2 |
cx88: Move cx88_dvb_bus_ctrl out of the card-specific area
From: Michael Krufky <mkrufky@linuxtv.org>
This function should not be in the card-specific area of the file.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-dvb.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-dvb.c b/linux/drivers/media/video/cx88/cx88-dvb.c index d06fea8b8..fed98deab 100644 --- a/linux/drivers/media/video/cx88/cx88-dvb.c +++ b/linux/drivers/media/video/cx88/cx88-dvb.c @@ -101,6 +101,26 @@ static struct videobuf_queue_ops dvb_qops = { }; /* ------------------------------------------------------------------ */ + +static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe, int acquire) +{ + struct cx8802_dev *dev= fe->dvb->priv; + struct cx8802_driver *drv = NULL; + int ret = 0; + + drv = cx8802_get_driver(dev, CX88_MPEG_DVB); + if (drv) { + if(acquire) + ret = drv->request_acquire(drv); + else + ret = drv->request_release(drv); + } + + return ret; +} + +/* ------------------------------------------------------------------ */ + static int dvico_fusionhdtv_demod_init(struct dvb_frontend* fe) { static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 }; @@ -288,24 +308,6 @@ static struct cx22702_config hauppauge_hvr_config = { .output_mode = CX22702_SERIAL_OUTPUT, }; -static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe, - int acquire) -{ - struct cx8802_dev *dev= fe->dvb->priv; - struct cx8802_driver *drv = NULL; - int ret = 0; - - drv = cx8802_get_driver(dev, CX88_MPEG_DVB); - if (drv) { - if(acquire) - ret = drv->request_acquire(drv); - else - ret = drv->request_release(drv); - } - - return ret; -} - static int or51132_set_ts_param(struct dvb_frontend* fe, int is_punctured) { |