Searched refs:ps_attr (Results 1 – 1 of 1) sorted by relevance
276 const struct power_supply_attr *ps_attr = to_ps_attr(attr); in power_supply_show_property() local313 if (ps_attr->text_values_len > 0 && in power_supply_show_property()314 value.intval < ps_attr->text_values_len && value.intval >= 0) { in power_supply_show_property()315 ret = sysfs_emit(buf, "%s\n", ps_attr->text_values[value.intval]); in power_supply_show_property()329 const struct power_supply_attr *ps_attr = to_ps_attr(attr); in power_supply_store_property() local334 if (ps_attr->text_values_len > 0) { in power_supply_store_property()335 ret = __sysfs_match_string(ps_attr->text_values, in power_supply_store_property()336 ps_attr->text_values_len, buf); in power_supply_store_property()