]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Convert period and duty cycle to u64
authorGuru Das Srinagesh <gurus@codeaurora.org>
Tue, 2 Jun 2020 22:31:16 +0000 (15:31 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 17 Jun 2020 18:42:11 +0000 (20:42 +0200)
commit0332207f94007a3620623d1909086cb02d8b7ca9
treee82d315a396940caf32c373b260ed6c9e955ac6b
parent469c34422b9cad09688693ae5d77cac9d3cc3c09
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: kbuild test robot <lkp@intel.com>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c
drivers/pwm/pwm-stm32-lp.c
drivers/pwm/sysfs.c
drivers/video/fbdev/ssd1307fb.c
include/linux/pwm.h