Home
last modified time | relevance | path

Searched refs:unipolar (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/iio/adc/
Dad7791.c215 bool unipolar = !!(st->mode & AD7791_MODE_UNIPOLAR); in ad7791_read_raw() local
226 if (unipolar) in ad7791_read_raw()
248 if (unipolar) in ad7791_read_raw()
342 if ((st->info->flags & AD7791_FLAG_HAS_UNIPOLAR) && pdata->unipolar) in ad7791_setup()
Dad7793.c302 if (pdata->unipolar) in ad7793_setup()
405 bool unipolar = !!(st->conf & AD7793_CONF_UNIPOLAR); in ad7793_read_raw() local
436 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1)); in ad7793_read_raw()
441 if (!unipolar) in ad7793_read_raw()
451 shift = chan->scan_type.realbits - (unipolar ? 0 : 1); in ad7793_read_raw()
/Linux-v4.19/drivers/staging/iio/adc/
Dad7192.c460 static unsigned int ad7192_get_temp_scale(bool unipolar) in ad7192_get_temp_scale() argument
462 return unipolar ? 2815 * 2 : 2815; in ad7192_get_temp_scale()
472 bool unipolar = !!(st->conf & AD7192_CONF_UNIPOLAR); in ad7192_read_raw() local
487 *val2 = 1000000000 / ad7192_get_temp_scale(unipolar); in ad7192_read_raw()
493 if (!unipolar) in ad7192_read_raw()
499 *val -= 273 * ad7192_get_temp_scale(unipolar); in ad7192_read_raw()
/Linux-v4.19/include/linux/platform_data/
Dad7791.h15 bool unipolar; member
Dad7793.h104 bool unipolar; member