mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "leds: qti-flash: Limit off_time of switch to a maximum of 1280 ms"
This commit is contained in:
commit
bd555ae76a
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue