Home
last modified time | relevance | path

Searched refs:sensor_field (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.15/drivers/hid/
Dhid-sensor-custom.c479 struct hid_sensor_custom_field *sensor_field; in hid_sensor_custom_add_field() local
490 sensor_field = &sensor_inst->fields[sensor_inst->sensor_field_count]; in hid_sensor_custom_add_field()
491 sensor_field->attribute.usage_id = sensor_inst->hsdev->usage; in hid_sensor_custom_add_field()
493 sensor_field->attribute.attrib_id = field->logical; in hid_sensor_custom_add_field()
495 sensor_field->attribute.attrib_id = field->usage[0].hid; in hid_sensor_custom_add_field()
497 sensor_field->attribute.index = index; in hid_sensor_custom_add_field()
498 sensor_field->attribute.report_id = report->id; in hid_sensor_custom_add_field()
499 sensor_field->attribute.units = field->unit; in hid_sensor_custom_add_field()
500 sensor_field->attribute.unit_expo = field->unit_exponent; in hid_sensor_custom_add_field()
501 sensor_field->attribute.size = (field->report_size / 8); in hid_sensor_custom_add_field()
[all …]