kernel-hacking-2024-linux-s.../drivers/pwm
Thierry Reding c2d476a98f pwm: Check for negative duty-cycle and period
Make sure the duty-cycle and period passed in are not negative. This
should eventually be made implicit by making them unsigned. While at
it, the drivers' .config() implementations can have the equivalent
checks removed.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Axel Lin <axel.lin@gmail.com>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Jonghwan Choi <jhbird.choi@samsung.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: "Philip, Avinash" <avinashphilip@ti.com>
Cc: Vaibhav Bedia <vaibhav.bedia@ti.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
2012-10-05 20:56:43 +02:00
..
core.c pwm: Check for negative duty-cycle and period 2012-10-05 20:56:43 +02:00
Kconfig pwm: Add Ingenic JZ4740 support 2012-10-05 20:56:42 +02:00
Makefile pwm: Add Ingenic JZ4740 support 2012-10-05 20:56:42 +02:00
pwm-ab8500.c pwm: Move AB8500 PWM driver to PWM framework 2012-09-20 12:52:03 +02:00
pwm-bfin.c pwm: Check for negative duty-cycle and period 2012-10-05 20:56:43 +02:00
pwm-imx.c pwm: i.MX: fix clock lookup 2012-09-12 14:25:07 +02:00
pwm-jz4740.c pwm: Add Ingenic JZ4740 support 2012-10-05 20:56:42 +02:00
pwm-lpc32xx.c pwm: add lpc32xx PWM support 2012-07-23 13:24:05 +02:00
pwm-mxs.c pwm: pwm-mxs: Return proper error if pwmchip_remove() fails 2012-07-23 13:24:01 +02:00
pwm-puv3.c pwm: Move PUV3 PWM driver to PWM framework 2012-10-05 20:56:41 +02:00
pwm-pxa.c pwm: Check for negative duty-cycle and period 2012-10-05 20:56:43 +02:00
pwm-samsung.c pwm: Check for negative duty-cycle and period 2012-10-05 20:56:43 +02:00
pwm-tegra.c pwm: Remove a redundant error message when devm_request_and_ioremap fails 2012-08-17 14:08:25 +02:00
pwm-tiecap.c pwm: Check for negative duty-cycle and period 2012-10-05 20:56:43 +02:00
pwm-tiehrpwm.c pwm: Check for negative duty-cycle and period 2012-10-05 20:56:43 +02:00
pwm-vt8500.c pwm: vt8500: Fix coding style issue 2012-08-17 14:08:25 +02:00