style fix
refactored reset pwm driver function