Lines Matching +full:led +full:- +full:pattern
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Driver model for leds and led triggers
11 #include <dt-bindings/leds/common.h>
25 * LED Core
47 * with in-driver hard-coded LED names used as a fallback when
49 * in new LED class drivers.
53 * string to be used for devicename section of LED class device
54 * either for label based LED name composition path or for fwnode
59 * indicates if LED name should always comprise devicename section;
60 * only LEDs exposed by drivers of hot-pluggable devices should
99 /* Set LED brightness level
106 * Set LED brightness level immediately - it can block the caller for
107 * the time required for accessing a LED device register.
111 /* Get LED brightness level */
127 struct led_pattern *pattern, u32 len, int repeat);
133 struct list_head node; /* LED Device list */
152 /* true if activated - deactivate routine uses it to do cleanup */
164 /* Ensures consistent access to the LED Flash Class device */
169 * led_classdev_register_ext - register a new object of LED class with
171 * @parent: LED controller device this LED is driven by
173 * @init_data: the LED class device initialization data
175 * Register a new object of LED class, with name derived from init_data.
184 * led_classdev_register - register a new object of LED class
185 * @parent: LED controller device this LED is driven by
188 * Register a new object of LED class, with name derived from the name property
220 * led_blink_set - set blinking with software fallback
221 * @led_cdev: the LED to start blinking
225 * This function makes the LED blink, attempting to use the
228 * the LED refuses the passed values.
231 * led_cdev->brightness_set() will not stop the blinking,
237 * led_blink_set_oneshot - do a oneshot software blink
238 * @led_cdev: the LED to start blinking
241 * @invert: blink off, then on, leaving the led on
243 * This function makes the LED blink one time for delay_on +
244 * delay_off time, ignoring the request if another one-shot
247 * If invert is set, led blinks for delay_off first, then for
248 * delay_on and leave the led on after the on-off cycle.
254 * led_set_brightness - set LED brightness
255 * @led_cdev: the LED to set
258 * Set an LED's brightness, and, if necessary, cancel the
265 * led_set_brightness_sync - set LED brightness synchronously
266 * @led_cdev: the LED to set
269 * Set an LED's brightness immediately. This function will block
278 * led_update_brightness - update LED brightness
279 * @led_cdev: the LED to query
281 * Get an LED's current brightness and update led_cdev->brightness
289 * led_get_default_pattern - return default pattern
291 * @led_cdev: the LED to get default pattern for
295 * Return: Allocated array of integers with default pattern from device tree
301 * led_sysfs_disable - disable LED sysfs interface
302 * @led_cdev: the LED to set
309 * led_sysfs_enable - enable LED sysfs interface
310 * @led_cdev: the LED to set
317 * led_compose_name - compose LED class device name
318 * @dev: LED controller device object
319 * @init_data: the LED class device initialization data
320 * @led_classdev_name: composed LED class device name
322 * Create LED class device name basing on the provided init_data argument.
332 * led_sysfs_is_disabled - check if LED sysfs interface is disabled
333 * @led_cdev: the LED to query
339 return led_cdev->flags & LED_SYSFS_DISABLE; in led_sysfs_is_disabled()
343 * LED Triggers
359 /* LED-private triggers have this set */
374 * the LED device. As this might change in the future, the following
375 * macros abstract getting the LED device and its trigger_data from the dev
404 led_cdev->trigger_data = trigger_data; in led_set_trigger_data()
409 return led_cdev->trigger_data; in led_get_trigger_data()
413 * led_trigger_rename_static - rename a trigger
415 * @trig: the LED trigger to rename
417 * Change a LED trigger name by copying the string passed in
422 * during LED registration, as that could lead to races.
489 * Generic LED platform data for describing LED names and default triggers.
516 /* For the leds-gpio driver */
579 * struct led_pattern - pattern interval settings
580 * @delta_t: pattern interval delay, in milliseconds
581 * @brightness: pattern interval brightness
589 LED_AUDIO_MUTE, /* master mute LED */
590 LED_AUDIO_MICMUTE, /* mic mute LED */