Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/iio/adc/
Dad7791.c214 bool unipolar = !!(st->mode & AD7791_MODE_UNIPOLAR); in ad7791_read_raw() local
225 if (unipolar) in ad7791_read_raw()
247 if (unipolar) in ad7791_read_raw()
341 if ((st->info->flags & AD7791_FLAG_HAS_UNIPOLAR) && pdata->unipolar) in ad7791_setup()
Dad7793.c301 if (pdata->unipolar) in ad7793_setup()
404 bool unipolar = !!(st->conf & AD7793_CONF_UNIPOLAR); in ad7793_read_raw() local
435 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1)); in ad7793_read_raw()
440 if (!unipolar) in ad7793_read_raw()
450 shift = chan->scan_type.realbits - (unipolar ? 0 : 1); in ad7793_read_raw()
/Linux-v5.4/include/linux/platform_data/
Dad7791.h15 bool unipolar; member
Dad7793.h103 bool unipolar; member
/Linux-v5.4/drivers/staging/iio/adc/
Dad7192.c476 static unsigned int ad7192_get_temp_scale(bool unipolar) in ad7192_get_temp_scale() argument
478 return unipolar ? 2815 * 2 : 2815; in ad7192_get_temp_scale()
557 bool unipolar = !!(st->conf & AD7192_CONF_UNIPOLAR); in ad7192_read_raw() local
572 *val2 = 1000000000 / ad7192_get_temp_scale(unipolar); in ad7192_read_raw()
578 if (!unipolar) in ad7192_read_raw()
584 *val -= 273 * ad7192_get_temp_scale(unipolar); in ad7192_read_raw()