Lines Matching refs:i2c_adapter
128 static int mantis_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) in mantis_i2c_xfer()
210 static u32 mantis_i2c_func(struct i2c_adapter *adapter) in mantis_i2c_func()
223 struct i2c_adapter *i2c_adapter = &mantis->adapter; in mantis_i2c_init() local
228 strncpy(i2c_adapter->name, "Mantis I2C", sizeof(i2c_adapter->name)); in mantis_i2c_init()
229 i2c_set_adapdata(i2c_adapter, mantis); in mantis_i2c_init()
231 i2c_adapter->owner = THIS_MODULE; in mantis_i2c_init()
232 i2c_adapter->algo = &mantis_algo; in mantis_i2c_init()
233 i2c_adapter->algo_data = NULL; in mantis_i2c_init()
234 i2c_adapter->timeout = 500; in mantis_i2c_init()
235 i2c_adapter->retries = 3; in mantis_i2c_init()
236 i2c_adapter->dev.parent = &pdev->dev; in mantis_i2c_init()
238 mantis->i2c_rc = i2c_add_adapter(i2c_adapter); in mantis_i2c_init()