Lines Matching refs:trigger
99 led_cdev->trigger ? "none" : "[none]"); in led_trigger_format()
107 hit = led_cdev->trigger && !strcmp(led_cdev->trigger->name, trig->name); in led_trigger_format()
165 if (!led_cdev->trigger && !trig) in led_trigger_set()
172 if (led_cdev->trigger) { in led_trigger_set()
173 spin_lock(&led_cdev->trigger->leddev_list_lock); in led_trigger_set()
175 spin_unlock(&led_cdev->trigger->leddev_list_lock); in led_trigger_set()
182 if (led_cdev->trigger->deactivate) in led_trigger_set()
183 led_cdev->trigger->deactivate(led_cdev); in led_trigger_set()
184 device_remove_groups(led_cdev->dev, led_cdev->trigger->groups); in led_trigger_set()
185 led_cdev->trigger = NULL; in led_trigger_set()
194 led_cdev->trigger = trig; in led_trigger_set()
228 spin_lock(&led_cdev->trigger->leddev_list_lock); in led_trigger_set()
230 spin_unlock(&led_cdev->trigger->leddev_list_lock); in led_trigger_set()
232 led_cdev->trigger = NULL; in led_trigger_set()
312 if (!led_cdev->trigger && led_cdev->default_trigger && in led_trigger_register()
342 if (led_cdev->trigger == trig) in led_trigger_unregister()