Lines Matching refs:i2c
34 struct i2c_client *i2c; member
56 return i2c_master_send(spi_xcomm->i2c, buf, 5); in spi_xcomm_sync_config()
120 ret = i2c_master_send(spi_xcomm->i2c, spi_xcomm->buf, t->len + 1); in spi_xcomm_txrx_bufs()
126 ret = i2c_master_recv(spi_xcomm->i2c, t->rx_buf, t->len); in spi_xcomm_txrx_bufs()
207 static int spi_xcomm_probe(struct i2c_client *i2c, in spi_xcomm_probe() argument
214 master = spi_alloc_master(&i2c->dev, sizeof(*spi_xcomm)); in spi_xcomm_probe()
219 spi_xcomm->i2c = i2c; in spi_xcomm_probe()
226 master->dev.of_node = i2c->dev.of_node; in spi_xcomm_probe()
227 i2c_set_clientdata(i2c, master); in spi_xcomm_probe()
229 ret = devm_spi_register_master(&i2c->dev, master); in spi_xcomm_probe()
240 MODULE_DEVICE_TABLE(i2c, spi_xcomm_ids);