Searched refs:AD7192_CONF_GAIN (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/staging/iio/adc/
H A Dad7192.c101 #define AD7192_CONF_GAIN(x) ((x) & 0x7) /* Gain Select */ macro
249 st->conf = AD7192_CONF_GAIN(0); ad7192_setup()
506 *val = st->scale_avail[AD7192_CONF_GAIN(st->conf)][0]; ad7192_read_raw()
507 *val2 = st->scale_avail[AD7192_CONF_GAIN(st->conf)][1]; ad7192_read_raw()
554 st->conf &= ~AD7192_CONF_GAIN(-1); ad7192_write_raw()
555 st->conf |= AD7192_CONF_GAIN(i); ad7192_write_raw()

Completed in 37 milliseconds