Lines Matching refs:fc_i2c_adap

230 	fc->fc_i2c_adap[0].fc = fc;  in flexcop_i2c_init()
231 fc->fc_i2c_adap[1].fc = fc; in flexcop_i2c_init()
232 fc->fc_i2c_adap[2].fc = fc; in flexcop_i2c_init()
233 fc->fc_i2c_adap[0].port = FC_I2C_PORT_DEMOD; in flexcop_i2c_init()
234 fc->fc_i2c_adap[1].port = FC_I2C_PORT_EEPROM; in flexcop_i2c_init()
235 fc->fc_i2c_adap[2].port = FC_I2C_PORT_TUNER; in flexcop_i2c_init()
237 strlcpy(fc->fc_i2c_adap[0].i2c_adap.name, "B2C2 FlexCop I2C to demod", in flexcop_i2c_init()
238 sizeof(fc->fc_i2c_adap[0].i2c_adap.name)); in flexcop_i2c_init()
239 strlcpy(fc->fc_i2c_adap[1].i2c_adap.name, "B2C2 FlexCop I2C to eeprom", in flexcop_i2c_init()
240 sizeof(fc->fc_i2c_adap[1].i2c_adap.name)); in flexcop_i2c_init()
241 strlcpy(fc->fc_i2c_adap[2].i2c_adap.name, "B2C2 FlexCop I2C to tuner", in flexcop_i2c_init()
242 sizeof(fc->fc_i2c_adap[2].i2c_adap.name)); in flexcop_i2c_init()
244 i2c_set_adapdata(&fc->fc_i2c_adap[0].i2c_adap, &fc->fc_i2c_adap[0]); in flexcop_i2c_init()
245 i2c_set_adapdata(&fc->fc_i2c_adap[1].i2c_adap, &fc->fc_i2c_adap[1]); in flexcop_i2c_init()
246 i2c_set_adapdata(&fc->fc_i2c_adap[2].i2c_adap, &fc->fc_i2c_adap[2]); in flexcop_i2c_init()
248 fc->fc_i2c_adap[0].i2c_adap.algo = in flexcop_i2c_init()
249 fc->fc_i2c_adap[1].i2c_adap.algo = in flexcop_i2c_init()
250 fc->fc_i2c_adap[2].i2c_adap.algo = &flexcop_algo; in flexcop_i2c_init()
251 fc->fc_i2c_adap[0].i2c_adap.algo_data = in flexcop_i2c_init()
252 fc->fc_i2c_adap[1].i2c_adap.algo_data = in flexcop_i2c_init()
253 fc->fc_i2c_adap[2].i2c_adap.algo_data = NULL; in flexcop_i2c_init()
254 fc->fc_i2c_adap[0].i2c_adap.dev.parent = in flexcop_i2c_init()
255 fc->fc_i2c_adap[1].i2c_adap.dev.parent = in flexcop_i2c_init()
256 fc->fc_i2c_adap[2].i2c_adap.dev.parent = fc->dev; in flexcop_i2c_init()
258 ret = i2c_add_adapter(&fc->fc_i2c_adap[0].i2c_adap); in flexcop_i2c_init()
262 ret = i2c_add_adapter(&fc->fc_i2c_adap[1].i2c_adap); in flexcop_i2c_init()
266 ret = i2c_add_adapter(&fc->fc_i2c_adap[2].i2c_adap); in flexcop_i2c_init()
274 i2c_del_adapter(&fc->fc_i2c_adap[1].i2c_adap); in flexcop_i2c_init()
276 i2c_del_adapter(&fc->fc_i2c_adap[0].i2c_adap); in flexcop_i2c_init()
283 i2c_del_adapter(&fc->fc_i2c_adap[2].i2c_adap); in flexcop_i2c_exit()
284 i2c_del_adapter(&fc->fc_i2c_adap[1].i2c_adap); in flexcop_i2c_exit()
285 i2c_del_adapter(&fc->fc_i2c_adap[0].i2c_adap); in flexcop_i2c_exit()