Lines Matching refs:adap
142 static int i2c_read_register(struct i2c_adapter *adap, int addr, int reg) in i2c_read_register() argument
152 if (2 != i2c_transfer(adap,msgs,2)) { in i2c_read_register()
229 static int tda9875_checkit(struct i2c_adapter *adap, int addr) in tda9875_checkit() argument
233 dic=i2c_read_register(adap,addr,254); in tda9875_checkit()
234 rev=i2c_read_register(adap,addr,255); in tda9875_checkit()
245 static int tda9875_attach(struct i2c_adapter *adap, int addr, in tda9875_attach() argument
259 client->adapter = adap; in tda9875_attach()
263 if(!tda9875_checkit(adap,addr)) { in tda9875_attach()
276 static int tda9875_probe(struct i2c_adapter *adap) in tda9875_probe() argument
279 if (adap->class & I2C_ADAP_CLASS_TV_ANALOG) in tda9875_probe()
280 return i2c_probe(adap, &addr_data, tda9875_attach); in tda9875_probe()
282 if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) in tda9875_probe()
283 return i2c_probe(adap, &addr_data, tda9875_attach); in tda9875_probe()