Lines Matching refs:dev_data
35 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02d_read_raw() local
41 ret = ms_sensors_ht_read_temperature(dev_data, in tsys02d_read_raw()
52 *val = tsys02d_samp_freq[dev_data->res_index]; in tsys02d_read_raw()
64 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02d_write_raw() local
75 mutex_lock(&dev_data->lock); in tsys02d_write_raw()
76 dev_data->res_index = i; in tsys02d_write_raw()
77 ret = ms_sensors_write_resolution(dev_data, i); in tsys02d_write_raw()
78 mutex_unlock(&dev_data->lock); in tsys02d_write_raw()
99 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02_read_battery_low() local
101 return ms_sensors_show_battery_low(dev_data, buf); in tsys02_read_battery_low()
127 struct ms_ht_dev *dev_data; in tsys02d_probe() local
141 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in tsys02d_probe()
145 dev_data = iio_priv(indio_dev); in tsys02d_probe()
146 dev_data->client = client; in tsys02d_probe()
147 dev_data->res_index = 0; in tsys02d_probe()
148 mutex_init(&dev_data->lock); in tsys02d_probe()