Home
last modified time | relevance | path

Searched full:ads1018 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/adc/
H A Dti-ads1018.c3 * Texas Instruments ADS1018 ADC driver
86 struct ads1018 { struct
207 * @ads1018: Device data
218 static int ads1018_spi_read_exclusive(struct ads1018 *ads1018, __be16 *cnv, in ads1018_spi_read_exclusive() argument
223 ads1018->xfer.cs_change = hold_cs; in ads1018_spi_read_exclusive()
225 ret = spi_sync_locked(ads1018->spi, &ads1018->msg_read); in ads1018_spi_read_exclusive()
230 *cnv = ads1018->rx_buf[0]; in ads1018_spi_read_exclusive()
237 * @ads1018: Device data
248 static int ads1018_single_shot(struct ads1018 *ads1018, in ads1018_single_shot() argument
251 u8 max_drate_mode = ads1018->chip_info->num_data_rate_mode_to_hz - 1; in ads1018_single_shot()
[all …]