pwm: lpc32xx: Fix the PWM polarity
authorAlban Bedel <alban.bedel@avionic-design.de>
Wed, 14 Nov 2012 11:58:13 +0000 (12:58 +0100)
committerThierry Reding <thierry.reding@avionic-design.de>
Thu, 6 Dec 2012 07:52:07 +0000 (08:52 +0100)
commita9a18e0691228707230df660dd56364aebf6ea47
treebb6dceef825dea69d2224f12035dedef45d100a5
parent983290b0625628448ea8907243e3cbceda0a8d74
pwm: lpc32xx: Fix the PWM polarity

The duty cycles value goes from 1 (99% HIGH) to 256 (0% HIGH) but it
is stored modulo 256 in the register as it is only 8 bits wide.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Acked-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-lpc32xx.c