regulator: pwm: Try to avoid voltage error in duty cycle calculation