Searched refs:sensor_field (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/hid/ |
H A D | hid-sensor-custom.c | 487 struct hid_sensor_custom_field *sensor_field; hid_sensor_custom_add_field() local 498 sensor_field = &sensor_inst->fields[sensor_inst->sensor_field_count]; hid_sensor_custom_add_field() 499 sensor_field->attribute.usage_id = sensor_inst->hsdev->usage; hid_sensor_custom_add_field() 501 sensor_field->attribute.attrib_id = field->logical; hid_sensor_custom_add_field() 503 sensor_field->attribute.attrib_id = field->usage[0].hid; hid_sensor_custom_add_field() 505 sensor_field->attribute.index = index; hid_sensor_custom_add_field() 506 sensor_field->attribute.report_id = report->id; hid_sensor_custom_add_field() 507 sensor_field->attribute.units = field->unit; hid_sensor_custom_add_field() 508 sensor_field->attribute.unit_expo = field->unit_exponent; hid_sensor_custom_add_field() 509 sensor_field->attribute.size = (field->report_size / 8); hid_sensor_custom_add_field() 510 sensor_field->attribute.logical_minimum = field->logical_minimum; hid_sensor_custom_add_field() 511 sensor_field->attribute.logical_maximum = field->logical_maximum; hid_sensor_custom_add_field() 514 snprintf(sensor_field->group_name, hid_sensor_custom_add_field() 515 sizeof(sensor_field->group_name), "feature-%x-%x", hid_sensor_custom_add_field() 516 sensor_field->attribute.index, hid_sensor_custom_add_field() 517 sensor_field->attribute.attrib_id); hid_sensor_custom_add_field() 519 snprintf(sensor_field->group_name, hid_sensor_custom_add_field() 520 sizeof(sensor_field->group_name), hid_sensor_custom_add_field() 521 "input-%x-%x", sensor_field->attribute.index, hid_sensor_custom_add_field() 522 sensor_field->attribute.attrib_id); hid_sensor_custom_add_field() 528 memset(&sensor_field->hid_custom_attribute_group, 0, hid_sensor_custom_add_field()
|
Completed in 122 milliseconds