Clean up the code
 - changed the global index of the pwm to local pwm index
 - change to the mainline kernel Kconfig architecture dependency
 - clean up the code (Stephen Warren comments)