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

/linux-master/include/linux/platform_data/
H A Dad7791.h9 * @unipolar: If set to true sample in unipolar mode, if set to false sample in
15 bool unipolar; member in struct:ad7791_platform_data
H A Dad7793.h91 * @unipolar: If set to true sample in unipolar mode, if set to false sample in
103 bool unipolar; member in struct:ad7793_platform_data
/linux-master/drivers/iio/adc/
H A Dad7791.c263 bool unipolar = !!(st->mode & AD7791_MODE_UNIPOLAR); local
274 if (unipolar)
296 if (unipolar)
390 if ((st->info->flags & AD7791_FLAG_HAS_UNIPOLAR) && pdata->unipolar)
H A Dad7192.c658 static unsigned int ad7192_get_temp_scale(bool unipolar) argument
660 return unipolar ? 2815 * 2 : 2815;
734 bool unipolar = FIELD_GET(AD7192_CONF_UNIPOLAR, st->conf); local
750 *val2 = 1000000000 / ad7192_get_temp_scale(unipolar);
756 if (!unipolar)
762 *val -= 273 * ad7192_get_temp_scale(unipolar);
H A Dad7793.c303 if (pdata->unipolar)
405 bool unipolar = !!(st->conf & AD7793_CONF_UNIPOLAR); local
436 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1));
441 if (!unipolar)
451 shift = chan->scan_type.realbits - (unipolar ? 0 : 1);

Completed in 123 milliseconds