[PATCH 6.12 067/262] pwm: tiehrpwm: Fix various off-by-one errors in duty-cycle calculation