Commit d2ee0ef1 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh Committed by Greg Kroah-Hartman
Browse files

FROMLIST: pwm: Convert period and duty cycle to u64

Because period and duty cycle are defined as ints with units of
nanoseconds, the maximum time duration that can be set is limited to
~2.147 seconds. Change their definitions to u64 in the structs of the
PWM framework so that higher durations may be set.

Also make the relevant fixes to those drivers that use the period and
duty_cycle struct members in division operations, viz. replacing the
division operations with 64-bit division macros as appropriate.

Bug: 140290586
Link: https://www.spinics.net/lists/linux-pwm/msg11133.html


Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: Ife96637115f8f704aef938291eb189cb29378afb
parent 8885e886
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment