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 | ||
|---|---|---|
| 64 | Missing .. | |
| 66 | s/pwm/PWM/ | |
| 67 | ... | |
| 68 | .Er EBUSY | |
| 76 | s/pwm/PWM/ | |
| 78 | s/pwm/PWM/ | |
| 83 | s/pwm/PWM/ | |
| 85 | s/pwm/PWM/ | |
| share/man/man9/pwmbus.9 | ||
| 60 | 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 | ||
| 60 | 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 | ||
|---|---|---|
| 137 | s/cap_rights_limit/caph_rights_limit/ Otherwise we need to check the errno. | |