cyttsp_spi.c (1cb0aa88179b7a71c240529e9d781d7bbb43d2e8) | cyttsp_spi.c (5298cc4cc753bbe4c530b41341834f6ef3344d0d) |
---|---|
1/* 2 * Source for: 3 * Cypress TrueTouch(TM) Standard Product (TTSP) SPI touchscreen driver. 4 * For use with Cypress Txx3xx parts. 5 * Supported parts include: 6 * CY8CTST341 7 * CY8CTMA340 8 * --- 133 unchanged lines hidden (view full) --- 142} 143 144static const struct cyttsp_bus_ops cyttsp_spi_bus_ops = { 145 .bustype = BUS_SPI, 146 .write = cyttsp_spi_write_block_data, 147 .read = cyttsp_spi_read_block_data, 148}; 149 | 1/* 2 * Source for: 3 * Cypress TrueTouch(TM) Standard Product (TTSP) SPI touchscreen driver. 4 * For use with Cypress Txx3xx parts. 5 * Supported parts include: 6 * CY8CTST341 7 * CY8CTMA340 8 * --- 133 unchanged lines hidden (view full) --- 142} 143 144static const struct cyttsp_bus_ops cyttsp_spi_bus_ops = { 145 .bustype = BUS_SPI, 146 .write = cyttsp_spi_write_block_data, 147 .read = cyttsp_spi_read_block_data, 148}; 149 |
150static int __devinit cyttsp_spi_probe(struct spi_device *spi) | 150static int cyttsp_spi_probe(struct spi_device *spi) |
151{ 152 struct cyttsp *ts; 153 int error; 154 155 /* Set up SPI*/ 156 spi->bits_per_word = CY_SPI_BITS_PER_WORD; 157 spi->mode = SPI_MODE_0; 158 error = spi_setup(spi); --- 42 unchanged lines hidden --- | 151{ 152 struct cyttsp *ts; 153 int error; 154 155 /* Set up SPI*/ 156 spi->bits_per_word = CY_SPI_BITS_PER_WORD; 157 spi->mode = SPI_MODE_0; 158 error = spi_setup(spi); --- 42 unchanged lines hidden --- |