[PATCH v3 05/10] pwm: add PWM mode to pwm_config()