Lines Matching refs:common_attributes
38 struct hid_sensor_common common_attributes; member
118 hsdev = st->common_attributes.hsdev; in hinge_read_raw()
121 hid_sensor_power_state(&st->common_attributes, true); in hinge_read_raw()
125 hid_sensor_power_state(&st->common_attributes, false); in hinge_read_raw()
129 *val = sensor_hub_input_attr_get_raw_value(st->common_attributes.hsdev, in hinge_read_raw()
135 hid_sensor_power_state(&st->common_attributes, false); in hinge_read_raw()
145 return hid_sensor_read_samp_freq_value(&st->common_attributes, in hinge_read_raw()
148 return hid_sensor_read_raw_hyst_value(&st->common_attributes, in hinge_read_raw()
164 return hid_sensor_write_samp_freq_value(&st->common_attributes, in hinge_write_raw()
167 return hid_sensor_write_raw_hyst_value(&st->common_attributes, in hinge_write_raw()
198 if (atomic_read(&st->common_attributes.data_ready)) { in hinge_proc_event()
227 st->timestamp = hid_sensor_convert_timestamp(&st->common_attributes, in hinge_capture_sample()
279 st->common_attributes.hsdev = hsdev; in hid_hinge_probe()
280 st->common_attributes.pdev = pdev; in hid_hinge_probe()
286 &st->common_attributes, in hid_hinge_probe()
312 atomic_set(&st->common_attributes.data_ready, 0); in hid_hinge_probe()
314 &st->common_attributes); in hid_hinge_probe()
340 hid_sensor_remove_trigger(indio_dev, &st->common_attributes); in hid_hinge_probe()
353 hid_sensor_remove_trigger(indio_dev, &st->common_attributes); in hid_hinge_remove()