diff options
author | Kenneth Aafloy <devnull@localhost> | 2004-07-16 18:20:10 +0000 |
---|---|---|
committer | Kenneth Aafloy <devnull@localhost> | 2004-07-16 18:20:10 +0000 |
commit | 2ae9e8fdd009dc568f8447b64c6e93bd95c26981 (patch) | |
tree | 8de345bc16fcbe4e01f8531a69c376123975cc10 /linux/drivers/media/dvb/frontends/mt352.h | |
parent | 1e5206f141b6df2b23ae88ba45d305f9e4cc6975 (diff) | |
download | mediapointer-dvb-s2-2ae9e8fdd009dc568f8447b64c6e93bd95c26981.tar.gz mediapointer-dvb-s2-2ae9e8fdd009dc568f8447b64c6e93bd95c26981.tar.bz2 |
- Conversion to Kernel I2C layer.
- MODULE_PARM* -> module_param*
- Common name for I2C device and prefix for debug messages.
NOTE: This needs testing by someone who has one of these frontends.
Diffstat (limited to 'linux/drivers/media/dvb/frontends/mt352.h')
-rw-r--r-- | linux/drivers/media/dvb/frontends/mt352.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt352.h b/linux/drivers/media/dvb/frontends/mt352.h index 4a41ee6e0..81f896447 100644 --- a/linux/drivers/media/dvb/frontends/mt352.h +++ b/linux/drivers/media/dvb/frontends/mt352.h @@ -32,8 +32,8 @@ #define I2C_TUNER_ADDR 0xc2 #define ID_MT352 0x13 -#define CARD_TUA6034 0x00 -#define CARD_AVDVBT771 0x01 +#define CARD_AVDVBT771 0x00 +#define CARD_TUA6034 0x01 #define CARD_TDTC9251DH01C 0x02 #define msb(x) (((x) >> 8) & 0xff) @@ -153,7 +153,7 @@ struct _tuner_info { int read_reg_flag; #define READ_REG_FLAG tuner_info[card_type].read_reg_flag - int (* mt352_init) (struct dvb_i2c_bus *i2c); + int (* mt352_init) (struct i2c_adapter *i2c); #define MT352_INIT tuner_info[card_type].mt352_init unsigned char (* mt352_charge_pump) (u32 freq); @@ -163,17 +163,15 @@ struct _tuner_info { #define MT352_BAND_SELECT tuner_info[card_type].mt352_band_select }; -static int mt352_init_TUA6034(struct dvb_i2c_bus *i2c); -static int mt352_init_AVERMEDIA771(struct dvb_i2c_bus *i2c); -static int mt352_init_TDTC9251DH01C(struct dvb_i2c_bus *i2c); +static int mt352_init_TUA6034(struct i2c_adapter *i2c); +static int mt352_init_AVERMEDIA771(struct i2c_adapter *i2c); +static int mt352_init_TDTC9251DH01C(struct i2c_adapter *i2c); static unsigned char mt352_cp_TUA6034(u32 freq); static unsigned char mt352_cp_AVERMEDIA771(u32 freq); static unsigned char mt352_cp_TDTC9251DH01C(u32 freq); static unsigned char mt352_bs_TUA6034(u32 freq); static unsigned char mt352_bs_AVERMEDIA771(u32 freq); static unsigned char mt352_bs_TDTC9251DH01C(u32 freq); -static int mt352_detect_avermedia_771(struct dvb_i2c_bus *i2c); -static int mt352_detect_tdtc9251dh01c(struct dvb_i2c_bus *i2c); -static int mt352_detect_tua6034(struct dvb_i2c_bus *i2c); +static int mt352_detect_avermedia_771(struct i2c_adapter *i2c); #endif /* _MT352_ */ |