Searched refs:attr_state (Results 1 – 2 of 2) sorted by relevance
225 struct device_attribute attr_state; member411 attr_state); in cable_state_show()1123 cable->attrs[1] = &cable->attr_state.attr; in extcon_alloc_cables()1133 sysfs_attr_init(&cable->attr_state.attr); in extcon_alloc_cables()1134 cable->attr_state.attr.name = "state"; in extcon_alloc_cables()1135 cable->attr_state.attr.mode = 0444; in extcon_alloc_cables()1136 cable->attr_state.show = cable_state_show; in extcon_alloc_cables()
1085 = container_of(attr, struct charger_regulator, attr_state); in charger_state_show()1187 charger->attrs[1] = &charger->attr_state.attr; in charger_manager_prepare_sysfs()1200 sysfs_attr_init(&charger->attr_state.attr); in charger_manager_prepare_sysfs()1201 charger->attr_state.attr.name = "state"; in charger_manager_prepare_sysfs()1202 charger->attr_state.attr.mode = 0444; in charger_manager_prepare_sysfs()1203 charger->attr_state.show = charger_state_show; in charger_manager_prepare_sysfs()