Lines Matching refs:dev_data
45 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_read_raw() local
51 ret = ms_sensors_ht_read_temperature(dev_data, in htu21_read_raw()
59 ret = ms_sensors_ht_read_humidity(dev_data, in htu21_read_raw()
70 *val = htu21_samp_freq[dev_data->res_index]; in htu21_read_raw()
82 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_write_raw() local
93 mutex_lock(&dev_data->lock); in htu21_write_raw()
94 dev_data->res_index = i; in htu21_write_raw()
95 ret = ms_sensors_write_resolution(dev_data, i); in htu21_write_raw()
96 mutex_unlock(&dev_data->lock); in htu21_write_raw()
133 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_show_battery_low() local
135 return ms_sensors_show_battery_low(dev_data, buf); in htu21_show_battery_low()
142 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_show_heater() local
144 return ms_sensors_show_heater(dev_data, buf); in htu21_show_heater()
152 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_write_heater() local
154 return ms_sensors_write_heater(dev_data, buf, len); in htu21_write_heater()
183 struct ms_ht_dev *dev_data; in htu21_probe() local
197 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in htu21_probe()
201 dev_data = iio_priv(indio_dev); in htu21_probe()
202 dev_data->client = client; in htu21_probe()
203 dev_data->res_index = 0; in htu21_probe()
204 mutex_init(&dev_data->lock); in htu21_probe()