diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2013-12-11 01:19:42 -0800 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-01-27 17:28:50 -0800 |
commit | fc1aee038b609dc33067ca9dd477b16ea893cae0 (patch) | |
tree | c098d278595f5efbdf7621969cf59d28aac6badf /drivers/leds/leds-dac124s085.c | |
parent | 3df22c06b9ca7df02e095595994d229811305825 (diff) | |
download | linux-fc1aee038b609dc33067ca9dd477b16ea893cae0.tar.gz linux-fc1aee038b609dc33067ca9dd477b16ea893cae0.tar.bz2 linux-fc1aee038b609dc33067ca9dd477b16ea893cae0.zip |
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: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-dac124s085.c')
0 files changed, 0 insertions, 0 deletions