Lines Matching refs:humid_st

61 	struct hid_humidity_state *humid_st = iio_priv(indio_dev);  in humidity_read_raw()  local
67 hid_sensor_power_state(&humid_st->common_attributes, true); in humidity_read_raw()
69 humid_st->common_attributes.hsdev, in humidity_read_raw()
72 humid_st->humidity_attr.report_id, in humidity_read_raw()
74 humid_st->humidity_attr.logical_minimum < 0); in humidity_read_raw()
75 hid_sensor_power_state(&humid_st->common_attributes, false); in humidity_read_raw()
80 *val = humid_st->scale_pre_decml; in humidity_read_raw()
81 *val2 = humid_st->scale_post_decml; in humidity_read_raw()
83 return humid_st->scale_precision; in humidity_read_raw()
86 *val = humid_st->value_offset; in humidity_read_raw()
92 &humid_st->common_attributes, val, val2); in humidity_read_raw()
96 &humid_st->common_attributes, val, val2); in humidity_read_raw()
107 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in humidity_write_raw() local
112 &humid_st->common_attributes, val, val2); in humidity_write_raw()
116 &humid_st->common_attributes, val, val2); in humidity_write_raw()
133 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in humidity_proc_event() local
135 if (atomic_read(&humid_st->common_attributes.data_ready)) in humidity_proc_event()
136 iio_push_to_buffers_with_timestamp(indio_dev, &humid_st->scan, in humidity_proc_event()
148 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in humidity_capture_sample() local
152 humid_st->scan.humidity_data = *(s32 *)raw_data; in humidity_capture_sample()
197 struct hid_humidity_state *humid_st; in hid_humidity_probe() local
202 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*humid_st)); in hid_humidity_probe()
206 humid_st = iio_priv(indio_dev); in hid_humidity_probe()
207 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe()
208 humid_st->common_attributes.pdev = pdev; in hid_humidity_probe()
212 &humid_st->common_attributes, in hid_humidity_probe()
224 HID_USAGE_SENSOR_HUMIDITY, humid_st); in hid_humidity_probe()
234 atomic_set(&humid_st->common_attributes.data_ready, 0); in hid_humidity_probe()
237 &humid_st->common_attributes); in hid_humidity_probe()
258 hid_sensor_remove_trigger(indio_dev, &humid_st->common_attributes); in hid_humidity_probe()
267 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in hid_humidity_remove() local
271 hid_sensor_remove_trigger(indio_dev, &humid_st->common_attributes); in hid_humidity_remove()