Lines Matching +full:default +full:- +full:brightness +full:- +full:level

1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <dt-bindings/leds/common.h>
28 /* This is obsolete/useless. We now support variable maximum brightness. */
46 * default <color:function> tuple, for backward compatibility
47 * with in-driver hard-coded LED names used as a fallback when
60 * only LEDs exposed by drivers of hot-pluggable devices should
72 unsigned int brightness; member
99 /* Set LED brightness level
101 * that can sleep while setting brightness.
104 enum led_brightness brightness);
106 * Set LED brightness level immediately - it can block the caller for
110 enum led_brightness brightness);
111 /* Get LED brightness level */
116 * and if both are zero then a sensible default should be chosen.
119 * Deactivate blinking again when the brightness is set to LED_OFF
152 /* true if activated - deactivate routine uses it to do cleanup */
169 * led_classdev_register_ext - register a new object of LED class with
184 * led_classdev_register - register a new object of LED class
220 * led_blink_set - set blinking with software fallback
231 * led_cdev->brightness_set() will not stop the blinking,
237 * led_blink_set_oneshot - do a oneshot software blink
244 * delay_off time, ignoring the request if another one-shot
248 * delay_on and leave the led on after the on-off cycle.
254 * led_set_brightness - set LED brightness
256 * @brightness: the brightness to set it to
258 * Set an LED's brightness, and, if necessary, cancel the
262 void led_set_brightness(struct led_classdev *led_cdev, unsigned int brightness);
265 * led_set_brightness_sync - set LED brightness synchronously
267 * @value: the brightness to set it to
269 * Set an LED's brightness immediately. This function will block
278 * led_update_brightness - update LED brightness
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
309 * led_sysfs_enable - enable LED sysfs interface
317 * led_compose_name - compose LED class device name
332 * led_sysfs_is_disabled - check if LED sysfs interface is disabled
339 return led_cdev->flags & LED_SYSFS_DISABLE; in led_sysfs_is_disabled()
359 /* LED-private triggers have this set */
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
489 * Generic LED platform data for describing LED names and default triggers.
516 /* For the leds-gpio driver */
572 struct led_classdev *led_cdev, unsigned int brightness);
575 struct led_classdev *led_cdev, enum led_brightness brightness) { } in led_classdev_notify_brightness_hw_changed() argument
579 * struct led_pattern - pattern interval settings
581 * @brightness: pattern interval brightness
585 int brightness; member