Lines Matching defs:spi
15 #include <linux/spi/spi.h>
33 struct spi_device *spi = to_spi_device(dev);
39 error = spi_sync(spi, &msg);
41 dev_err(dev, "%s: failed, command: %x, spi error: %d\n",
49 static int tsc2005_probe(struct spi_device *spi)
53 spi->mode = SPI_MODE_0;
54 spi->bits_per_word = 8;
55 if (!spi->max_speed_hz)
56 spi->max_speed_hz = TSC2005_SPI_MAX_SPEED_HZ;
58 error = spi_setup(spi);
62 return tsc200x_probe(&spi->dev, spi->irq, &tsc2005_input_id,
63 devm_regmap_init_spi(spi, &tsc200x_regmap_config),
67 static void tsc2005_remove(struct spi_device *spi)
69 tsc200x_remove(&spi->dev);
94 MODULE_ALIAS("spi:tsc2005");