diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-i2c.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-i2c.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c index 78bbcfab9670..6b42dea860fd 100644 --- a/drivers/media/video/cx88/cx88-i2c.c +++ b/drivers/media/video/cx88/cx88-i2c.c | |||
@@ -108,28 +108,28 @@ static int attach_inform(struct i2c_client *client) | |||
108 | if (!client->driver->command) | 108 | if (!client->driver->command) |
109 | return 0; | 109 | return 0; |
110 | 110 | ||
111 | if (core->radio_type != UNSET) { | 111 | if (core->board.radio_type != UNSET) { |
112 | if ((core->radio_addr==ADDR_UNSET)||(core->radio_addr==client->addr)) { | 112 | if ((core->board.radio_addr==ADDR_UNSET)||(core->board.radio_addr==client->addr)) { |
113 | tun_setup.mode_mask = T_RADIO; | 113 | tun_setup.mode_mask = T_RADIO; |
114 | tun_setup.type = core->radio_type; | 114 | tun_setup.type = core->board.radio_type; |
115 | tun_setup.addr = core->radio_addr; | 115 | tun_setup.addr = core->board.radio_addr; |
116 | 116 | ||
117 | client->driver->command (client, TUNER_SET_TYPE_ADDR, &tun_setup); | 117 | client->driver->command (client, TUNER_SET_TYPE_ADDR, &tun_setup); |
118 | } | 118 | } |
119 | } | 119 | } |
120 | if (core->tuner_type != UNSET) { | 120 | if (core->board.tuner_type != UNSET) { |
121 | if ((core->tuner_addr==ADDR_UNSET)||(core->tuner_addr==client->addr)) { | 121 | if ((core->board.tuner_addr==ADDR_UNSET)||(core->board.tuner_addr==client->addr)) { |
122 | 122 | ||
123 | tun_setup.mode_mask = T_ANALOG_TV; | 123 | tun_setup.mode_mask = T_ANALOG_TV; |
124 | tun_setup.type = core->tuner_type; | 124 | tun_setup.type = core->board.tuner_type; |
125 | tun_setup.addr = core->tuner_addr; | 125 | tun_setup.addr = core->board.tuner_addr; |
126 | 126 | ||
127 | client->driver->command (client,TUNER_SET_TYPE_ADDR, &tun_setup); | 127 | client->driver->command (client,TUNER_SET_TYPE_ADDR, &tun_setup); |
128 | } | 128 | } |
129 | } | 129 | } |
130 | 130 | ||
131 | if (core->tda9887_conf) | 131 | if (core->board.tda9887_conf) |
132 | client->driver->command(client, TDA9887_SET_CONFIG, &core->tda9887_conf); | 132 | client->driver->command(client, TDA9887_SET_CONFIG, &core->board.tda9887_conf); |
133 | return 0; | 133 | return 0; |
134 | } | 134 | } |
135 | 135 | ||
@@ -204,9 +204,9 @@ int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci) | |||
204 | memcpy(&core->i2c_algo, &cx8800_i2c_algo_template, | 204 | memcpy(&core->i2c_algo, &cx8800_i2c_algo_template, |
205 | sizeof(core->i2c_algo)); | 205 | sizeof(core->i2c_algo)); |
206 | 206 | ||
207 | if (core->tuner_type != TUNER_ABSENT) | 207 | if (core->board.tuner_type != TUNER_ABSENT) |
208 | core->i2c_adap.class |= I2C_CLASS_TV_ANALOG; | 208 | core->i2c_adap.class |= I2C_CLASS_TV_ANALOG; |
209 | if (cx88_boards[core->board].mpeg & CX88_MPEG_DVB) | 209 | if (core->board.mpeg & CX88_MPEG_DVB) |
210 | core->i2c_adap.class |= I2C_CLASS_TV_DIGITAL; | 210 | core->i2c_adap.class |= I2C_CLASS_TV_DIGITAL; |
211 | 211 | ||
212 | core->i2c_adap.dev.parent = &pci->dev; | 212 | core->i2c_adap.dev.parent = &pci->dev; |