[PATCH 6.4 252/292] pwm: meson: modify and simplify calculation in meson_pwm_get_state