[PATCH 4.16 146/196] pwm: mediatek: Improve precision in rate calculation