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

Commit 2097688a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "leds: triggers: Don't remove trigger if LED_KEEP_TRIGGER flag is set"

parents 58ec3706 d636932d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -44,7 +44,8 @@ ssize_t led_trigger_store(struct device *dev, struct device_attribute *attr,
		goto unlock;
	}

	if (sysfs_streq(buf, "none")) {
	if (sysfs_streq(buf, "none") &&
			!(led_cdev->flags & LED_KEEP_TRIGGER)) {
		led_trigger_remove(led_cdev);
		goto unlock;
	}