Skip to content

Commit 7910162

Browse files
Uwe Kleine-Könignunojsa
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> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20230911154454.675057-1-u.kleine-koenig@pengutronix.de Origin: v6.7-rc1~118^2~28 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent 655926c commit 7910162

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/driver-api/pwm.rst

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

121121
duty_cycle
122122
The active time of the PWM signal (read/write).
123-
Value is in nanoseconds and must be less than the period.
123+
Value is in nanoseconds and must be less than or equal to the period.
124124

125125
polarity
126126
Changes the polarity of the PWM signal (read/write).
127127
Writes to this property only work if the PWM chip supports changing
128-
the polarity. The polarity can only be changed if the PWM is not
129-
enabled. Value is the string "normal" or "inversed".
128+
the polarity.
129+
Value is the string "normal" or "inversed".
130130

131131
enable
132132
Enable/disable the PWM signal (read/write).

0 commit comments

Comments
 (0)