Searched refs:device_attr (Results 1 – 2 of 2) sorted by relevance
593 struct device_attribute *device_attr; in hid_sensor_custom_add_attributes() local595 device_attr = &sensor_inst->fields[i].sd_attrs[j]; in hid_sensor_custom_add_attributes()601 sysfs_attr_init(&device_attr->attr); in hid_sensor_custom_add_attributes()602 device_attr->attr.name = in hid_sensor_custom_add_attributes()604 device_attr->attr.mode = hid_custom_attrs[j].mode; in hid_sensor_custom_add_attributes()605 device_attr->show = show_value; in hid_sensor_custom_add_attributes()607 device_attr->store = store_value; in hid_sensor_custom_add_attributes()608 sensor_inst->fields[i].attrs[j] = &device_attr->attr; in hid_sensor_custom_add_attributes()
2307 struct ib_device_attr *device_attr,