Lines Matching refs:spi
28 struct spi_device *spi = tps65912->control_data; in tps65912_spi_write() local
47 ret = spi_sync(spi, &msg); in tps65912_spi_write()
54 struct spi_device *spi = tps65912->control_data; in tps65912_spi_read() local
74 if (spi == NULL) in tps65912_spi_read()
77 ret = spi_sync(spi, &msg); in tps65912_spi_read()
83 static int tps65912_spi_probe(struct spi_device *spi) in tps65912_spi_probe() argument
87 tps65912 = devm_kzalloc(&spi->dev, in tps65912_spi_probe()
92 tps65912->dev = &spi->dev; in tps65912_spi_probe()
93 tps65912->control_data = spi; in tps65912_spi_probe()
97 spi_set_drvdata(spi, tps65912); in tps65912_spi_probe()
102 static int tps65912_spi_remove(struct spi_device *spi) in tps65912_spi_remove() argument
104 struct tps65912 *tps65912 = spi_get_drvdata(spi); in tps65912_spi_remove()