mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
b05d39466b
The introduction of high resolution PWM support changed the order of the
operations in the calculation of min and max period. The result in both
divisions is in most cases a truncation to 0, which limits the period to
the range of [0, 0].
Both numerators (and denominators) are within 64 bits, so the whole
expression can be put directly into the div64_u64, instead of doing it
partially.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
leds-mt6370-rgb.c | ||
leds-pwm-multicolor.c | ||
leds-qcom-lpg.c | ||
Makefile |