Add a pwm subsystem so we can configure pwm controller from kernel and userland.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
A few easy fixes for both man pages (I annotated only, but they apply to both).
Thanks for the writeup.
share/man/man9/pwm.9 | ||
---|---|---|
59 | interfal == interface or interval? | |
59 | s/allow device drive/allows the device driver/ | |
60 | s/device/devices/ | |
67 | s/is/if/ | |
68 | s/is/if/ | |
80 | s/channel/channels/ | |
83 | s/appear/appeared/ |
Sometimes you write pwm and sometimes PWM.
I'd either change everything to PWM or to .Nm pwm (I am not sure if sole .Nm is going to work).
Cheers :)
share/man/man9/pwm.9 | ||
---|---|---|
63 | Missing .. | |
65 | s/pwm/PWM/ | |
66 | ... | |
67 | .Er EBUSY | |
75 | s/pwm/PWM/ | |
77 | s/pwm/PWM/ | |
82 | s/pwm/PWM/ | |
84 | s/pwm/PWM/ | |
share/man/man9/pwmbus.9 | ||
59 | This paragraph has similar issues to the one from the other manual page reviewed by @bcr. |
Two comments for the updated version.
share/man/man9/pwm.9 | ||
---|---|---|
59 | It still reads "device drive" instead of "device driver" here. Or is it just device without the driver? "drive" is definitely wrong here. | |
share/man/man9/pwmbus.9 | ||
59 | This is still the old version? Should be fixing the same issue as above (s/allow device/allows the device/) |
share/man/man9/pwm.9 | ||
---|---|---|
59 | Yeah sorry I missed this part earlier. |
usr.sbin/pwm/pwm.c | ||
---|---|---|
70 | Where is HAVE_CAPSICUM defined? |
Remove HAVE_CAPSICUM as it's deprecated.
While here correct a typo in cap_right/s_init
usr.sbin/pwm/pwm.c | ||
---|---|---|
138 | s/cap_rights_limit/caph_rights_limit/ Otherwise we need to check the errno. |