Lines Matching refs:trig

23 	struct led_trigger trig;  member
28 container_of(trigger, struct power_supply_led_trigger, trig)
55 psy_trig->trig.name = kasprintf(GFP_KERNEL, name_template, psy->desc->name); in power_supply_register_led_trigger()
56 if (!psy_trig->trig.name) in power_supply_register_led_trigger()
59 psy_trig->trig.activate = power_supply_led_trigger_activate; in power_supply_register_led_trigger()
62 ret = led_trigger_register(&psy_trig->trig); in power_supply_register_led_trigger()
66 *tp = &psy_trig->trig; in power_supply_register_led_trigger()
70 kfree(psy_trig->trig.name); in power_supply_register_led_trigger()
79 static void power_supply_unregister_led_trigger(struct led_trigger *trig) in power_supply_unregister_led_trigger() argument
83 if (!trig) in power_supply_unregister_led_trigger()
86 psy_trig = trigger_to_psy_trigger(trig); in power_supply_unregister_led_trigger()
87 led_trigger_unregister(&psy_trig->trig); in power_supply_unregister_led_trigger()
88 kfree(psy_trig->trig.name); in power_supply_unregister_led_trigger()
105 led_trigger_event(psy->trig, LED_FULL); in power_supply_update_bat_leds()
117 led_trigger_event(psy->trig, LED_FULL); in power_supply_update_bat_leds()
127 led_trigger_event(psy->trig, LED_OFF); in power_supply_update_bat_leds()
140 power_supply_unregister_led_trigger(psy->trig); in power_supply_remove_bat_triggers()
152 &psy->trig, &err); in power_supply_create_bat_triggers()
179 led_trigger_event(psy->trig, LED_FULL); in power_supply_update_gen_leds()
181 led_trigger_event(psy->trig, LED_OFF); in power_supply_update_gen_leds()
186 return power_supply_register_led_trigger(psy, "%s-online", &psy->trig, NULL); in power_supply_create_gen_triggers()
191 power_supply_unregister_led_trigger(psy->trig); in power_supply_remove_gen_triggers()