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: Willie Ruan <wruan@codeaurora.org>
1 file changed