9
0
Fork 0
barebox/drivers/pwm
Sascha Hauer f043520c5a pwm: sanity check values before passing them to the drivers
Check for valid period size before calling ops->config. This fixes
the pxa driver which otherwise does a division by zero. While at
it, also check for duty_ns being smaller or equal to period_ns.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
2013-09-27 07:16:50 +02:00
..
Kconfig pwm PXA: Compile only on PXA 2012-07-25 09:27:27 +02:00
Makefile drivers/pwm: add PXA pulse width modulator controller 2012-02-17 10:18:30 +01:00
core.c pwm: sanity check values before passing them to the drivers 2013-09-27 07:16:50 +02:00
pxa_pwm.c switch all platform_bus device/driver registering to platform_driver/device_register 2012-10-04 15:19:12 +02:00