[PATCH v5 15/46] pwm: introduce the pwm_state concept