Skip to content

Commit 8151b37

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: Adapt sysfs API documentation to reality
Most low-level PWM drivers support duty_cycle == period, and so does the sysfs API. Also polarity can be changed for enabled PWMs since commit 39100ce ("pwm: Switch to the atomic API"). Reported-by: Jens Gehrlein <J.Gehrlein@eckelmann.de> Link: https://lore.kernel.org/r/20230911154454.675057-1-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent 4aff152 commit 8151b37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Documentation/driver-api/pwm.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ channel that was exported. The following properties will then be available:
111111

112112
duty_cycle
113113
The active time of the PWM signal (read/write).
114-
Value is in nanoseconds and must be less than the period.
114+
Value is in nanoseconds and must be less than or equal to the period.
115115

116116
polarity
117117
Changes the polarity of the PWM signal (read/write).
118118
Writes to this property only work if the PWM chip supports changing
119-
the polarity. The polarity can only be changed if the PWM is not
120-
enabled. Value is the string "normal" or "inversed".
119+
the polarity.
120+
Value is the string "normal" or "inversed".
121121

122122
enable
123123
Enable/disable the PWM signal (read/write).

0 commit comments

Comments
 (0)