[PATCH v4 2/2] include: pwm: minor function doc fix for pwm_set_relative_duty_cycle()

Marc Reilly marc at cpdesign.com.au
Thu Jun 1 21:53:06 PDT 2023


Signed-off-by: Marc Reilly <marc at cpdesign.com.au>
---
 include/pwm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/pwm.h b/include/pwm.h
index 643ef4d7ee..02af7d0a5f 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -71,7 +71,7 @@ unsigned int pwm_get_period(struct pwm_device *pwm);
  * @scale: scale in which @duty_cycle is expressed
  *
  * This functions converts a relative into an absolute duty cycle (expressed
- * in nanoseconds), and puts the result in state->duty_cycle.
+ * in nanoseconds), and puts the result in state->duty_ns.
  *
  * For example if you want to configure a 50% duty cycle, call:
  *
-- 
2.35.3




More information about the barebox mailing list