Home
last modified time | relevance | path

Searched refs:power_supply_attrs (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/power/supply/
H A Dpower_supply_sysfs.c136 static struct power_supply_attr power_supply_attrs[] = { variable
217 __power_supply_attrs[ARRAY_SIZE(power_supply_attrs) + 1];
226 return to_ps_attr(attr) - power_supply_attrs; in dev_attr_psp()
357 if (!power_supply_attrs[attrno].prop_name) in power_supply_attr_is_visible()
402 for (i = 0; i < ARRAY_SIZE(power_supply_attrs); i++) { in power_supply_init_attrs()
405 if (!power_supply_attrs[i].prop_name) { in power_supply_init_attrs()
406 pr_warn("%s: Property %d skipped because is is missing from power_supply_attrs\n", in power_supply_init_attrs()
408 sprintf(power_supply_attrs[i].attr_name, "_err_%d", i); in power_supply_init_attrs()
410 str_to_lower(power_supply_attrs[i].attr_name); in power_supply_init_attrs()
413 attr = &power_supply_attrs[ in power_supply_init_attrs()
[all...]
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dpower_supply_sysfs.c144 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()
419 pr_warn("%s: Property %d skipped because it is missing from power_supply_attrs\n", 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[ in power_supply_init_attrs()
[all...]

Completed in 2 milliseconds