diff options
author | Matthias Benesch <twoof7@freenet.de> | 2009-12-20 04:18:53 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 21:10:53 +0300 |
commit | 6ed36e6670635b162cc59e40cdb0fbcc51d59d1e (patch) | |
tree | b4da826002d19794f65fc8ea21236c71816d514b /drivers/media/dvb | |
parent | 0027ebb73eff5bf0709f016edcad2be0605a3e4f (diff) | |
download | linux-6ed36e6670635b162cc59e40cdb0fbcc51d59d1e.tar.xz |
V4L/DVB: ngene: Additional clean-up
Remove and disable unnecessary code. Disable define ONE_ADAPTER.
Signed-off-by: Matthias Benesch <twoof7@freenet.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/ngene/ngene-core.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/ngene/ngene.h | 39 |
2 files changed, 3 insertions, 39 deletions
diff --git a/drivers/media/dvb/ngene/ngene-core.c b/drivers/media/dvb/ngene/ngene-core.c index 1fb16353708b..eb47b86902f9 100644 --- a/drivers/media/dvb/ngene/ngene-core.c +++ b/drivers/media/dvb/ngene/ngene-core.c @@ -2435,7 +2435,8 @@ static int init_channel(struct ngene_channel *chan) #else ret = dvb_register_adapter(&chan->dvb_adapter, "nGene", THIS_MODULE, - &chan->dev->pci_dev->dev); + &chan->dev->pci_dev->dev, + adapter_nr); if (ret < 0) return ret; adapter = &chan->dvb_adapter; diff --git a/drivers/media/dvb/ngene/ngene.h b/drivers/media/dvb/ngene/ngene.h index 74c6dab220a3..243f86c85897 100644 --- a/drivers/media/dvb/ngene/ngene.h +++ b/drivers/media/dvb/ngene/ngene.h @@ -24,7 +24,7 @@ #ifndef _NGENE_H_ #define _NGENE_H_ -#define ONE_ADAPTER +/*#define ONE_ADAPTER*/ #include <linux/types.h> #include <linux/sched.h> @@ -794,38 +794,6 @@ struct ngene { int prev_cmd; }; -struct channel_info { - int io_type; -#define NGENE_IO_NONE 0 -#define NGENE_IO_TV 1 -#define NGENE_IO_HDTV 2 -#define NGENE_IO_TSIN 4 -#define NGENE_IO_TSOUT 8 -#define NGENE_IO_AIN 16 - - void *fe_config; - void *tuner_config; - - int (*demod_attach)(struct ngene_channel *); - int demod_type; -#define NGENE_DEMOD_NONE 0 -#define NGENE_DEMOD_DRXD 1 -#define NGENE_DEMOD_STB0899 2 -#define NGENE_DEMOD_DRXH 3 - - int (*tuner_attach)(struct ngene_channel *); - int tuner_type; -#define NGENE_TUNER_NONE 0 -#define NGENE_TUNER_MT2060 1 - - u8 demod; - u8 tuner; - u8 lnb; - u8 demoda; - u8 avf; - u8 msp; -}; - struct ngene_info { int type; #define NGENE_APP 0 @@ -906,12 +874,7 @@ int ngene_command_imem_read(struct ngene *dev, u8 adr, u8 *data, int type); int ngene_command_imem_write(struct ngene *dev, u8 adr, u8 data, int type); int ngene_stream_control(struct ngene *dev, u8 stream, u8 control, u8 mode, u16 lines, u16 bpl, u16 vblines, u16 vbibpl); -int ngene_v4l2_init(struct ngene_channel *chan); -void ngene_v4l2_remove(struct ngene_channel *chan); -int ngene_snd_exit(struct ngene_channel *chan); -int ngene_snd_init(struct ngene_channel *chan); -struct i2c_client *avf4910a_attach(struct i2c_adapter *adap, int addr); #endif |