Lines Matching refs:dev_data
52 struct tsys01_dev *dev_data = iio_priv(indio_dev); in tsys01_read_temperature() local
54 mutex_lock(&dev_data->lock); in tsys01_read_temperature()
55 ret = dev_data->convert_and_read(dev_data->client, in tsys01_read_temperature()
58 mutex_unlock(&dev_data->lock); in tsys01_read_temperature()
67 (s64)dev_data->prom[5 - i]; in tsys01_read_temperature()
72 temp += coeff_mul[0] * (s64)dev_data->prom[5]; in tsys01_read_temperature()
130 struct tsys01_dev *dev_data = iio_priv(indio_dev); in tsys01_read_prom() local
135 ret = dev_data->read_prom_word(dev_data->client, in tsys01_read_prom()
137 &dev_data->prom[i]); in tsys01_read_prom()
141 ret = sprintf(ptr, "0x%04x ", dev_data->prom[i]); in tsys01_read_prom()
145 if (!tsys01_crc_valid(dev_data->prom)) { in tsys01_read_prom()
158 struct tsys01_dev *dev_data = iio_priv(indio_dev); in tsys01_probe() local
160 mutex_init(&dev_data->lock); in tsys01_probe()
168 ret = dev_data->reset(dev_data->client, TSYS01_RESET, 3000); in tsys01_probe()
181 struct tsys01_dev *dev_data; in tsys01_i2c_probe() local
193 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in tsys01_i2c_probe()
197 dev_data = iio_priv(indio_dev); in tsys01_i2c_probe()
198 dev_data->client = client; in tsys01_i2c_probe()
199 dev_data->reset = ms_sensors_reset; in tsys01_i2c_probe()
200 dev_data->read_prom_word = ms_sensors_read_prom_word; in tsys01_i2c_probe()
201 dev_data->convert_and_read = ms_sensors_convert_and_read; in tsys01_i2c_probe()