freebsd-dev/usr.sbin/pwm
Andriy Gapon a4f28d4296 pwm(8): fix potential duty overflow, use unsigneds for period and duty
For a long period value and the duty specified as a percentage,
there could be an overflow.
Using unsigned integers aligns the code with struct pwm_state and allows
to safely use periods up to 4 seconds where supported by drivers.

MFC after:	2 weeks
2020-09-25 07:55:08 +00:00
..
Makefile
pwm.8 Oops, it seems I left out the word 'cycle', fix it. 2019-06-18 02:27:30 +00:00
pwm.c pwm(8): fix potential duty overflow, use unsigneds for period and duty 2020-09-25 07:55:08 +00:00