Home
last modified time | relevance | path

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

/openbmc/linux/drivers/extcon/
H A Dextcon.c225 struct device_attribute attr_state; member
411 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()
/openbmc/linux/include/linux/power/
H A Dcharger-manager.h117 struct device_attribute attr_state; member
/openbmc/linux/drivers/power/supply/
H A Dcharger-manager.c1085 = 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()