• Xiubo Li's avatar
    leds: leds-pwm: fix duty time overflow. · fc1aee03
    Xiubo Li authored
    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>
    fc1aee03
leds-pwm.c 5.75 KB