Commit 70f989db authored by Willie Ruan's avatar Willie Ruan
Browse files

mfd: pm8xxx-pwm: fix an overflow bug



The overflow could be the multiplication (period_us * NSEC_PER_USEC)
in next line, rather than at the 6-bit max period value. So we should
use the max unsigned int value as boundary.

Change-Id: Ida753d752a8ca144b4c158e1a6ed505077de98ea
Signed-off-by: default avatarWillie Ruan <wruan@codeaurora.org>
parent c155c357
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment