Code clean up for PWM driver.