Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b31af223 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "leds: add flag to keep trigger always"

parents 9c340f0c b827b53c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ static ssize_t brightness_store(struct device *dev,
	if (ret)
		goto unlock;

	if (state == LED_OFF)
	if (state == LED_OFF && !(led_cdev->flags & LED_KEEP_TRIGGER))
		led_trigger_remove(led_cdev);
	led_set_brightness(led_cdev, state);

+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ struct led_classdev {
#define LED_PANIC_INDICATOR	BIT(20)
#define LED_BRIGHT_HW_CHANGED	BIT(21)
#define LED_RETAIN_AT_SHUTDOWN	BIT(22)
#define LED_KEEP_TRIGGER	BIT(23)

	/* set_brightness_work / blink_timer flags, atomic, private. */
	unsigned long		work_flags;