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>
32 /* This is obsolete/useless. We now support variable maximum brightness. */
47 * struct led_lookup_data - represents a single LED lookup entry
65 * default <color:function> tuple, for backward compatibility
66 * with in-driver hard-coded LED names used as a fallback when
79 * only LEDs exposed by drivers of hot-pluggable devices should
93 unsigned int brightness; member
122 /* Brightness off also disables hw-blinking so it is a separate action */
127 /* Set LED brightness level
129 * that can sleep while setting brightness.
132 enum led_brightness brightness);
134 * Set LED brightness level immediately - it can block the caller for
138 enum led_brightness brightness);
139 /* Get LED brightness level */
144 * and if both are zero then a sensible default should be chosen.
147 * Deactivate blinking again when the brightness is set to LED_OFF
187 /* true if activated - deactivate routine uses it to do cleanup */
199 * Return 0 on success. Return -EOPNOTSUPP when the passed flags are not
210 * Deactivate hardware blink control by setting brightness to LED_OFF via
247 * led_classdev_register_ext - register a new object of LED class with
262 * led_classdev_register - register a new object of LED class
305 * led_blink_set - set blinking with software fallback
318 * led_cdev->brightness_set() will not stop the blinking,
325 * led_blink_set_nosleep - set blinking, guaranteed to not sleep
337 * led_blink_set_oneshot - do a oneshot software blink
344 * delay_off time, ignoring the request if another one-shot
348 * delay_on and leave the led on after the on-off cycle.
356 * led_set_brightness - set LED brightness
358 * @brightness: the brightness to set it to
360 * Set an LED's brightness, and, if necessary, cancel the
364 void led_set_brightness(struct led_classdev *led_cdev, unsigned int brightness);
367 * led_set_brightness_sync - set LED brightness synchronously
369 * @value: the brightness to set it to
371 * Set an LED's brightness immediately. This function will block
380 * led_mc_set_brightness - set mc LED color intensity values and brightness
384 * @brightness: the brightness to set the LED to
386 * Set a multi-color LED's per color intensity values and brightness.
390 * Calling this function on a non multi-color led_classdev or with the wrong
396 unsigned int brightness);
399 * led_update_brightness - update LED brightness
402 * Get an LED's current brightness and update led_cdev->brightness
410 * led_get_default_pattern - return default pattern
412 * @led_cdev: the LED to get default pattern for
416 * Return: Allocated array of integers with default pattern from device tree
422 * led_sysfs_disable - disable LED sysfs interface
430 * led_sysfs_enable - enable LED sysfs interface
438 * led_compose_name - compose LED class device name
453 * led_get_color_name - get string representation of color ID
463 * led_sysfs_is_disabled - check if LED sysfs interface is disabled
470 return led_cdev->flags & LED_SYSFS_DISABLE; in led_sysfs_is_disabled()
490 /* Brightness set by led_trigger_event */
491 enum led_brightness brightness; member
493 /* LED-private triggers have this set */
527 enum led_brightness brightness);
541 led_cdev->trigger_data = trigger_data; in led_set_trigger_data()
546 return led_cdev->trigger_data; in led_get_trigger_data()
552 return trigger ? trigger->brightness : LED_OFF; in led_trigger_get_brightness()
572 enum led_brightness brightness) {} in led_mc_trigger_event() argument
644 * Generic LED platform data for describing LED names and default triggers.
670 /* For the leds-gpio driver */
726 struct led_classdev *led_cdev, unsigned int brightness);
729 struct led_classdev *led_cdev, enum led_brightness brightness) { } in led_classdev_notify_brightness_hw_changed() argument
733 * struct led_pattern - pattern interval settings
735 * @brightness: pattern interval brightness
739 int brightness; member