[PATCH] pwm: pwm-twl-led: Correct comment for cycle configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The original commit was not documenting correctly the behavior of the cycle
configuration.

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

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

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux