Lines Matching defs:spi
15 #include <linux/spi/spi.h>
16 #include <linux/spi/max7301.h>
22 struct spi_device *spi = to_spi_device(dev);
25 return spi_write_then_read(spi, &word, sizeof(word), NULL, 0);
34 struct spi_device *spi = to_spi_device(dev);
37 ret = spi_write_then_read(spi, &word, sizeof(word), &word,
44 static int max7301_probe(struct spi_device *spi)
50 spi->bits_per_word = 16;
51 ret = spi_setup(spi);
55 ts = devm_kzalloc(&spi->dev, sizeof(struct max7301), GFP_KERNEL);
61 ts->dev = &spi->dev;
67 static int max7301_remove(struct spi_device *spi)
69 return __max730x_remove(&spi->dev);
76 MODULE_DEVICE_TABLE(spi, max7301_id);
91 /* register after spi postcore initcall and before