The original commit was not documenting correctly the behavior of the cycle
configuration.
Signed-off-by: Peter Ujfalusi <[email protected]>
---
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 --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;
--
1.8.0