Lines Matching defs:pdata
228 const struct ad7793_platform_data *pdata)
230 if ((pdata->current_source_direction == AD7793_IEXEC1_IEXEC2_IOUT1 ||
231 pdata->current_source_direction == AD7793_IEXEC1_IEXEC2_IOUT2) &&
232 ((pdata->exitation_current != AD7793_IX_10uA) &&
233 (pdata->exitation_current != AD7793_IX_210uA)))
237 pdata->clock_src != AD7793_CLK_SRC_INT)
241 pdata->refsel != AD7793_REFSEL_REFIN1)
245 pdata->bias_voltage != AD7793_BIAS_VOLTAGE_DISABLED)
249 pdata->exitation_current != AD7793_IX_DISABLED)
256 const struct ad7793_platform_data *pdata,
264 ret = ad7793_check_platform_data(st, pdata);
291 st->mode |= AD7793_MODE_CLKSRC(pdata->clock_src);
293 st->conf |= AD7793_CONF_REFSEL(pdata->refsel);
295 st->conf |= AD7793_CONF_VBIAS(pdata->bias_voltage);
296 if (pdata->buffered || !(st->chip_info->flags & AD7793_FLAG_HAS_BUFFER))
298 if (pdata->boost_enable &&
301 if (pdata->burnout_current)
303 if (pdata->unipolar)
319 pdata->exitation_current |
320 (pdata->current_source_direction << 2));
779 const struct ad7793_platform_data *pdata = spi->dev.platform_data;
784 if (!pdata) {
802 if (pdata->refsel != AD7793_REFSEL_INTERNAL) {
837 ret = ad7793_setup(indio_dev, pdata, vref_mv);