Lines Matching defs:data
129 static int maxim_thermocouple_read(struct maxim_thermocouple_data *data,
132 unsigned int storage_bytes = data->chip->read_size;
140 ret = spi_read(data->spi, (void *)&buf16, storage_bytes);
144 ret = spi_read(data->spi, (void *)&buf32, storage_bytes);
155 if (*val & data->chip->status_bit)
167 struct maxim_thermocouple_data *data = iio_priv(indio_dev);
170 ret = spi_read(data->spi, data->buffer, data->chip->read_size);
172 iio_push_to_buffers_with_timestamp(indio_dev, data->buffer,
185 struct maxim_thermocouple_data *data = iio_priv(indio_dev);
194 ret = maxim_thermocouple_read(data, chan, val);
214 *val = data->tc_type;
230 struct maxim_thermocouple_data *data;
236 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*data));
247 data = iio_priv(indio_dev);
248 data->spi = spi;
249 data->chip = chip;
250 data->tc_type = maxim_tc_types[id->driver_data];