Lines Matching refs:stmpe
3 * ST Microelectronics MFD: stmpe's spi client specific driver
16 #include "stmpe.h"
20 static int spi_reg_read(struct stmpe *stmpe, u8 reg)
22 struct spi_device *spi = stmpe->client;
28 static int spi_reg_write(struct stmpe *stmpe, u8 reg, u8 val)
30 struct spi_device *spi = stmpe->client;
36 static int spi_block_read(struct stmpe *stmpe, u8 reg, u8 length, u8 *values)
41 ret = spi_reg_read(stmpe, reg + i);
50 static int spi_block_write(struct stmpe *stmpe, u8 reg, u8 length,
56 ret = spi_reg_write(stmpe, reg, *(values + i - 1));
64 static void spi_init(struct stmpe *stmpe)
66 struct spi_device *spi = stmpe->client;
71 if (stmpe->variant->id_val == 0x0811)
72 spi_reg_write(stmpe, STMPE811_REG_SPI_CFG, spi->mode);
107 struct stmpe *stmpe = spi_get_drvdata(spi);
109 stmpe_remove(stmpe);
136 .name = "stmpe-spi",