Searched refs:ps_attr (Results 1 – 1 of 1) sorted by relevance
279 struct power_supply_attr *ps_attr = to_ps_attr(attr); in power_supply_show_property() local301 if (ps_attr->text_values_len > 0 && in power_supply_show_property()302 value.intval < ps_attr->text_values_len && value.intval >= 0) { in power_supply_show_property()303 return sysfs_emit(buf, "%s\n", ps_attr->text_values[value.intval]); in power_supply_show_property()326 struct power_supply_attr *ps_attr = to_ps_attr(attr); in power_supply_store_property() local331 if (ps_attr->text_values_len > 0) { in power_supply_store_property()332 ret = __sysfs_match_string(ps_attr->text_values, in power_supply_store_property()333 ps_attr->text_values_len, buf); in power_supply_store_property()