Lines Matching refs:power_supply_attrs
145 static struct power_supply_attr power_supply_attrs[] __ro_after_init = { variable
225 #define POWER_SUPPLY_ATTR_CNT ARRAY_SIZE(power_supply_attrs)
237 return to_ps_attr(attr) - power_supply_attrs; in dev_attr_psp()
371 if (!power_supply_attrs[attrno].prop_name) in power_supply_attr_is_visible()
408 for (i = 0; i < ARRAY_SIZE(power_supply_attrs); i++) { in power_supply_init_attrs()
411 if (!power_supply_attrs[i].prop_name) { in power_supply_init_attrs()
414 sprintf(power_supply_attrs[i].attr_name, "_err_%d", i); in power_supply_init_attrs()
416 string_lower(power_supply_attrs[i].attr_name, in power_supply_init_attrs()
417 power_supply_attrs[i].attr_name); in power_supply_init_attrs()
420 attr = &power_supply_attrs[i].dev_attr; in power_supply_init_attrs()
422 attr->attr.name = power_supply_attrs[i].attr_name; in power_supply_init_attrs()
437 pwr_attr = &power_supply_attrs[prop]; in add_prop_uevent()