Lines Matching refs:power_supply_attrs
144 static struct power_supply_attr power_supply_attrs[] = { variable
224 #define POWER_SUPPLY_ATTR_CNT ARRAY_SIZE(power_supply_attrs)
236 return to_ps_attr(attr) - power_supply_attrs; in dev_attr_psp()
367 if (!power_supply_attrs[attrno].prop_name) in power_supply_attr_is_visible()
415 for (i = 0; i < ARRAY_SIZE(power_supply_attrs); i++) { in power_supply_init_attrs()
418 if (!power_supply_attrs[i].prop_name) { in power_supply_init_attrs()
421 sprintf(power_supply_attrs[i].attr_name, "_err_%d", i); in power_supply_init_attrs()
423 str_to_lower(power_supply_attrs[i].attr_name); in power_supply_init_attrs()
426 attr = &power_supply_attrs[i].dev_attr; in power_supply_init_attrs()
428 attr->attr.name = power_supply_attrs[i].attr_name; in power_supply_init_attrs()
443 pwr_attr = &power_supply_attrs[prop]; in add_prop_uevent()