diff options
author | Derek Basehore <[email protected]> | 2017-08-29 13:34:34 -0700 |
---|---|---|
committer | Lee Jones <[email protected]> | 2017-10-13 10:41:20 +0100 |
commit | 5d0c49acebc9488e37db95f1d4a55644e545ffe7 (patch) | |
tree | 569883e84e757a23fcde534201fdd09b332be937 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) |
backlight: pwm_bl: Fix overflow condition
This fixes an overflow condition that can happen with high max
brightness and period values in compute_duty_cycle. This fixes it by
using a 64 bit variable for computing the duty cycle.
Signed-off-by: Derek Basehore <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Reviewed-by: Brian Norris <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions