Lines Matching +full:default +full:- +full:brightness
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. */
40 * default <color:function> tuple, for backward compatibility
41 * with in-driver hard-coded LED names used as a fallback when
54 * only LEDs exposed by drivers of hot-pluggable devices should
66 enum led_brightness brightness; member
93 /* Set LED brightness level
95 * that can sleep while setting brightness.
98 enum led_brightness brightness);
100 * Set LED brightness level immediately - it can block the caller for
104 enum led_brightness brightness);
105 /* Get LED brightness level */
110 * and if both are zero then a sensible default should be chosen.
113 * Deactivate blinking again when the brightness is set to LED_OFF
146 /* true if activated - deactivate routine uses it to do cleanup */
163 * led_classdev_register_ext - register a new object of LED class with
178 * led_classdev_register - register a new object of LED class
214 * led_blink_set - set blinking with software fallback
225 * led_cdev->brightness_set() will not stop the blinking,
231 * led_blink_set_oneshot - do a oneshot software blink
238 * delay_off time, ignoring the request if another one-shot
242 * delay_on and leave the led on after the on-off cycle.
248 * led_set_brightness - set LED brightness
250 * @brightness: the brightness to set it to
252 * Set an LED's brightness, and, if necessary, cancel the
257 enum led_brightness brightness);
260 * led_set_brightness_sync - set LED brightness synchronously
262 * @value: the brightness to set it to
264 * Set an LED's brightness immediately. This function will block
274 * led_update_brightness - update LED brightness
277 * Get an LED's current brightness and update led_cdev->brightness
285 * led_get_default_pattern - return default pattern
287 * @led_cdev: the LED to get default pattern for
291 * Return: Allocated array of integers with default pattern from device tree
297 * led_sysfs_disable - disable LED sysfs interface
305 * led_sysfs_enable - enable LED sysfs interface
313 * led_compose_name - compose LED class device name
328 * led_sysfs_is_disabled - check if LED sysfs interface is disabled
335 return led_cdev->flags & LED_SYSFS_DISABLE; in led_sysfs_is_disabled()
355 /* LED-private triggers have this set */
400 led_cdev->trigger_data = trigger_data; in led_set_trigger_data()
405 return led_cdev->trigger_data; in led_get_trigger_data()
409 * led_trigger_rename_static - rename a trigger
485 * Generic LED platform data for describing LED names and default triggers.
512 /* For the leds-gpio driver */
568 struct led_classdev *led_cdev, enum led_brightness brightness);
571 struct led_classdev *led_cdev, enum led_brightness brightness) { } in led_classdev_notify_brightness_hw_changed() argument
575 * struct led_pattern - pattern interval settings
577 * @brightness: pattern interval brightness
581 int brightness; member