From: Thierry Reding Date: Sun, 2 Sep 2012 20:13:40 +0000 (+0200) Subject: pwm: Check for negative duty-cycle and period X-Git-Tag: v3.7-rc1~59^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d476a98f71c55e9acdca1d5a1080a22c0622af;p=pandora-kernel.git 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 Cc: Shawn Guo Cc: Mark Brown Cc: Arnd Bergmann Cc: Sachin Kamat Cc: Axel Lin Cc: Kukjin Kim Cc: Jingoo Han Cc: Jonghwan Choi Cc: Sascha Hauer Cc: "Philip, Avinash" Cc: Vaibhav Bedia Acked-by: Jingoo Han --- Reading git-diff-tree failed