Lines Matching refs:data
130 static int maxim_thermocouple_read(struct maxim_thermocouple_data *data,
133 unsigned int storage_bytes = data->chip->read_size;
141 ret = spi_read(data->spi, (void *)&buf16, storage_bytes);
145 ret = spi_read(data->spi, (void *)&buf32, storage_bytes);
156 if (*val & data->chip->status_bit)
168 struct maxim_thermocouple_data *data = iio_priv(indio_dev);
171 ret = spi_read(data->spi, data->buffer, data->chip->read_size);
173 iio_push_to_buffers_with_timestamp(indio_dev, data->buffer,
186 struct maxim_thermocouple_data *data = iio_priv(indio_dev);
195 ret = maxim_thermocouple_read(data, chan, val);
215 *val = data->tc_type;
231 struct maxim_thermocouple_data *data;
237 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*data));
248 data = iio_priv(indio_dev);
249 data->spi = spi;
250 data->chip = chip;
251 data->tc_type = maxim_tc_types[id->driver_data];