Lines Matching refs:dev_data
43 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_read_raw() local
47 ret = ms_sensors_read_temp_and_pressure(dev_data, in ms5637_read_raw()
67 *val = ms5637_samp_freq[dev_data->res_index]; in ms5637_read_raw()
79 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_write_raw() local
90 dev_data->res_index = i; in ms5637_write_raw()
131 struct ms_tp_dev *dev_data; in ms5637_probe() local
144 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in ms5637_probe()
148 dev_data = iio_priv(indio_dev); in ms5637_probe()
149 dev_data->client = client; in ms5637_probe()
150 dev_data->res_index = 5; in ms5637_probe()
151 mutex_init(&dev_data->lock); in ms5637_probe()
166 ret = ms_sensors_tp_read_prom(dev_data); in ms5637_probe()