Home
last modified time | relevance | path

Searched refs:test_power_supplies (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dtest_power.c165 static struct power_supply *test_power_supplies[TEST_POWER_NUM]; variable
210 BUILD_BUG_ON(TEST_POWER_NUM != ARRAY_SIZE(test_power_supplies)); in test_power_init()
213 for (i = 0; i < ARRAY_SIZE(test_power_supplies); i++) { in test_power_init()
214 test_power_supplies[i] = power_supply_register(NULL, in test_power_init()
217 if (IS_ERR(test_power_supplies[i])) { in test_power_init()
220 ret = PTR_ERR(test_power_supplies[i]); in test_power_init()
229 power_supply_unregister(test_power_supplies[i]); in test_power_init()
242 for (i = 0; i < ARRAY_SIZE(test_power_supplies); i++) in test_power_exit()
243 power_supply_changed(test_power_supplies[i]); in test_power_exit()
248 for (i = 0; i < ARRAY_SIZE(test_power_supplies); i++) in test_power_exit()
[all …]