Skip to content
Commit a9d887dc authored by Guru Das Srinagesh's avatar Guru Das Srinagesh Committed by Thierry Reding
Browse files

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 use the right format specifiers in debug prints in both core.c,
pwm-stm32-lp.c as well as video/fbdev/ssd1307fb.c.

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent a6733474
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment