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

Skip to content
Commit fc1aee03 authored by Xiubo Li's avatar Xiubo Li Committed by Bryan Wu
Browse files

leds: leds-pwm: fix duty time overflow.



Overflow maybe occurs when calculates the duty time. For instance,
the period time is 990000000ns, and the max_brightness is 127, when
setting the brightness to 12, the duty value will be 25906026ns, but
it should be 93543307ns.

Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 3df22c06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment