Searched refs:ads1018 (Results 1 – 4 of 4) sorted by relevance
86 struct ads1018 { struct218 static int ads1018_spi_read_exclusive(struct ads1018 *ads1018, __be16 *cnv, in ads1018_spi_read_exclusive() argument223 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()248 static int ads1018_single_shot(struct ads1018 *ads1018, in ads1018_single_shot() argument251 u8 max_drate_mode = ads1018->chip_info->num_data_rate_mode_to_hz - 1; in ads1018_single_shot()252 u32 drate = ads1018->chip_info->data_rate_mode_to_hz[max_drate_mode]; in ads1018_single_shot()253 u8 pga_mode = ads1018->chan_data[chan->scan_index].pga_mode; in ads1018_single_shot()256 .tx_buf = ads1018->tx_buf, in ads1018_single_shot()[all …]
152 obj-$(CONFIG_TI_ADS1018) += ti-ads1018.o
1747 called ti-ads1018.
26584 F: Documentation/devicetree/bindings/iio/adc/ti,ads1018.yaml26585 F: drivers/iio/adc/ti-ads1018.c