Searched refs:ad7949_adc (Results 1 – 1 of 1) sorted by relevance
93 static int ad7949_spi_write_cfg(struct ad7949_adc_chip *ad7949_adc, u16 val, in ad7949_spi_write_cfg() argument98 ad7949_adc->cfg = (val & mask) | (ad7949_adc->cfg & ~mask); in ad7949_spi_write_cfg()100 switch (ad7949_adc->spi->bits_per_word) { 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()115 dev_err(&ad7949_adc->indio_dev->dev, "unsupported BPW\n"); in ad7949_spi_write_cfg()[all …]