Lines Matching defs:spi
15 #include <linux/spi/spi.h>
135 static int ice40_fpga_probe(struct spi_device *spi)
137 struct device *dev = &spi->dev;
142 priv = devm_kzalloc(&spi->dev, sizeof(*priv), GFP_KERNEL);
146 priv->dev = spi;
149 if (spi->max_speed_hz > ICE40_SPI_MAX_SPEED) {
155 if (spi->max_speed_hz < ICE40_SPI_MIN_SPEED) {
161 if (spi->mode & SPI_CPHA) {
186 spi_set_drvdata(spi, mgr);
191 static int ice40_fpga_remove(struct spi_device *spi)
193 struct fpga_manager *mgr = spi_get_drvdata(spi);