UPSTREAM: pwm: Improve args checking in pwm_apply_state()