[PATCH 6.1 191/223] pwm: meson: modify and simplify calculation in meson_pwm_get_state