test_power_supplies 153 drivers/power/supply/test_power.c static struct power_supply *test_power_supplies[TEST_POWER_NUM]; test_power_supplies 198 drivers/power/supply/test_power.c BUILD_BUG_ON(TEST_POWER_NUM != ARRAY_SIZE(test_power_supplies)); test_power_supplies 201 drivers/power/supply/test_power.c for (i = 0; i < ARRAY_SIZE(test_power_supplies); i++) { test_power_supplies 202 drivers/power/supply/test_power.c test_power_supplies[i] = power_supply_register(NULL, test_power_supplies 205 drivers/power/supply/test_power.c if (IS_ERR(test_power_supplies[i])) { test_power_supplies 208 drivers/power/supply/test_power.c ret = PTR_ERR(test_power_supplies[i]); test_power_supplies 217 drivers/power/supply/test_power.c power_supply_unregister(test_power_supplies[i]); test_power_supplies 230 drivers/power/supply/test_power.c for (i = 0; i < ARRAY_SIZE(test_power_supplies); i++) test_power_supplies 231 drivers/power/supply/test_power.c power_supply_changed(test_power_supplies[i]); test_power_supplies 236 drivers/power/supply/test_power.c for (i = 0; i < ARRAY_SIZE(test_power_supplies); i++) test_power_supplies 237 drivers/power/supply/test_power.c power_supply_unregister(test_power_supplies[i]); test_power_supplies 337 drivers/power/supply/test_power.c signal_power_supply_changed(test_power_supplies[TEST_AC]); test_power_supplies 350 drivers/power/supply/test_power.c signal_power_supply_changed(test_power_supplies[TEST_USB]); test_power_supplies 364 drivers/power/supply/test_power.c signal_power_supply_changed(test_power_supplies[TEST_BATTERY]); test_power_supplies 378 drivers/power/supply/test_power.c signal_power_supply_changed(test_power_supplies[TEST_BATTERY]); test_power_supplies 392 drivers/power/supply/test_power.c signal_power_supply_changed(test_power_supplies[TEST_AC]); test_power_supplies 408 drivers/power/supply/test_power.c signal_power_supply_changed(test_power_supplies[TEST_BATTERY]); test_power_supplies 429 drivers/power/supply/test_power.c signal_power_supply_changed(test_power_supplies[TEST_BATTERY]); test_power_supplies 444 drivers/power/supply/test_power.c signal_power_supply_changed(test_power_supplies[TEST_BATTERY]);