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

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

Merge "leds: qti-flash: Limit off_time of switch to a maximum of 1280 ms"

parents e3e3bd29 2a117735
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1032,6 +1032,8 @@ static ssize_t qti_flash_off_time_store(struct device *dev,
	if (rc < 0)
		return rc;

	val = min_t(u64, val, SAFETY_TIMER_MAX_TIMEOUT_MS);

	snode = container_of(led_cdev, struct flash_switch_data, cdev);
	snode->off_time_ms = val;