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

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
101 unsigned int brightness; member
128 /* Brightness off also disables hw-blinking so it is a separate action */
133 /* Set LED brightness level
135 * that can sleep while setting brightness.
138 enum led_brightness brightness);
140 * Set LED brightness level immediately - it can block the caller for
144 enum led_brightness brightness);
145 /* Get LED brightness level */
150 * and if both are zero then a sensible default should be chosen.
153 * Deactivate blinking again when the brightness is set to LED_OFF
192 /* true if activated - deactivate routine uses it to do cleanup */
204 * Return 0 on success. Return -EOPNOTSUPP when the passed flags are not
215 * Deactivate hardware blink control by setting brightness to LED_OFF via
252 * led_classdev_register_ext - register a new object of LED class with
267 * led_classdev_register - register a new object of LED class
321 * led_blink_set - set blinking with software fallback
334 * led_cdev->brightness_set() will not stop the blinking,
341 * led_blink_set_nosleep - set blinking, guaranteed to not sleep
353 * led_blink_set_oneshot - do a oneshot software blink
360 * delay_off time, ignoring the request if another one-shot
364 * delay_on and leave the led on after the on-off cycle.
372 * led_set_brightness - set LED brightness
374 * @brightness: the brightness to set it to
376 * Set an LED's brightness, and, if necessary, cancel the
380 void led_set_brightness(struct led_classdev *led_cdev, unsigned int brightness);
383 * led_set_brightness_sync - set LED brightness synchronously
385 * @value: the brightness to set it to
387 * Set an LED's brightness immediately. This function will block
396 * led_update_brightness - update LED brightness
399 * Get an LED's current brightness and update led_cdev->brightness
407 * led_get_default_pattern - return default pattern
409 * @led_cdev: the LED to get default pattern for
413 * Return: Allocated array of integers with default pattern from device tree
419 * led_sysfs_disable - disable LED sysfs interface
427 * led_sysfs_enable - enable LED sysfs interface
435 * led_compose_name - compose LED class device name
450 * led_sysfs_is_disabled - check if LED sysfs interface is disabled
457 return led_cdev->flags & LED_SYSFS_DISABLE; in led_sysfs_is_disabled()
477 /* LED-private triggers have this set */
522 led_cdev->trigger_data = trigger_data; in led_set_trigger_data()
527 return led_cdev->trigger_data; in led_get_trigger_data()
608 * Generic LED platform data for describing LED names and default triggers.
634 /* For the leds-gpio driver */
690 struct led_classdev *led_cdev, unsigned int brightness);
693 struct led_classdev *led_cdev, enum led_brightness brightness) { } in led_classdev_notify_brightness_hw_changed() argument
697 * struct led_pattern - pattern interval settings
699 * @brightness: pattern interval brightness
703 int brightness; member