Lines Matching refs:dev_data
40 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_read_raw() local
44 ret = ms_sensors_read_temp_and_pressure(dev_data, in ms5637_read_raw()
64 *val = ms5637_samp_freq[dev_data->res_index]; in ms5637_read_raw()
76 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_write_raw() local
87 dev_data->res_index = i; in ms5637_write_raw()
129 struct ms_tp_dev *dev_data; in ms5637_probe() local
142 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in ms5637_probe()
146 dev_data = iio_priv(indio_dev); in ms5637_probe()
147 dev_data->client = client; in ms5637_probe()
148 dev_data->res_index = 5; in ms5637_probe()
149 mutex_init(&dev_data->lock); in ms5637_probe()
164 ret = ms_sensors_tp_read_prom(dev_data); in ms5637_probe()