Searched refs:ad7949_adc (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/adc/ |
H A D | ad7949.c | 98 ad7949_adc->cfg = (val & mask) | (ad7949_adc->cfg & ~mask); in ad7949_spi_write_cfg() 102 ad7949_adc->buffer = ad7949_adc->cfg << 2; in ad7949_spi_write_cfg() 103 ret = spi_write(ad7949_adc->spi, &ad7949_adc->buffer, 2); in ad7949_spi_write_cfg() 106 ad7949_adc->buffer = ad7949_adc->cfg; in ad7949_spi_write_cfg() 107 ret = spi_write(ad7949_adc->spi, &ad7949_adc->buffer, 2); in ad7949_spi_write_cfg() 111 ad7949_adc->buf8b = cpu_to_be16(ad7949_adc->cfg << 2); in ad7949_spi_write_cfg() 112 ret = spi_write(ad7949_adc->spi, &ad7949_adc->buf8b, 2); in ad7949_spi_write_cfg() 151 ret = spi_read(ad7949_adc->spi, &ad7949_adc->buf8b, 2); in ad7949_spi_read_channel() 153 ret = spi_read(ad7949_adc->spi, &ad7949_adc->buffer, 2); in ad7949_spi_read_channel() 298 ad7949_spi_read_channel(ad7949_adc, &val, ad7949_adc->current_channel); in ad7949_spi_init() [all …]
|