Home
last modified time | relevance | path

Searched refs:sca_data (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/accel/
H A Dsca3300.c251 static int sca3300_transfer(struct sca3300_data *sca_data, int *val) in sca3300_transfer() argument
260 .tx_buf = sca_data->txbuf, in sca3300_transfer()
261 .len = ARRAY_SIZE(sca_data->txbuf), in sca3300_transfer()
266 .rx_buf = sca_data->rxbuf, in sca3300_transfer()
267 .len = ARRAY_SIZE(sca_data->rxbuf), in sca3300_transfer()
273 crc = ~crc8(sca3300_crc_table, &sca_data->txbuf[0], 3, CRC8_INIT_VALUE); in sca3300_transfer()
274 sca_data->txbuf[3] = crc; in sca3300_transfer()
276 ret = spi_sync_transfer(sca_data->spi, xfers, ARRAY_SIZE(xfers)); in sca3300_transfer()
278 dev_err(&sca_data->spi->dev, in sca3300_transfer()
283 crc = ~crc8(sca3300_crc_table, &sca_data->rxbuf[0], 3, CRC8_INIT_VALUE); in sca3300_transfer()
[all …]