diff mbox

pwm: pwm-twl-led: Correct comment for cycle configuration

Message ID 1353413148-5319-1-git-send-email-peter.ujfalusi@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Peter Ujfalusi Nov. 20, 2012, 12:05 p.m. UTC
The original commit was not documenting correctly the behavior of the cycle
configuration.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---

Hi Thierry,

small update to the new pwm-twl-led driver to correct the comment describing the
cycle configuration for the PWMA/B of TWL4030.
The update is on top of v3 of the twl pwm series:
https://lkml.org/lkml/2012/11/20/193

Regards,
Peter

 drivers/pwm/pwm-twl-led.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/pwm/pwm-twl-led.c b/drivers/pwm/pwm-twl-led.c
index 9468720..e62b95e 100644
--- a/drivers/pwm/pwm-twl-led.c
+++ b/drivers/pwm/pwm-twl-led.c
@@ -73,8 +73,8 @@  static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm,
 	 * 0 -> off cycle = 2,
 	 * 1 -> off cycle = 2,
 	 * 2 -> off cycle = 3,
-	 * 125 - > off cycle 127,
-	 * 126 - > off cycle 1
+	 * 126 - > off cycle 127,
+	 * 127 - > off cycle 1
 	 * When on cycle == off cycle the PWM will be always on
 	 */
 	duty_cycle += 1;