Move pwmScale calc to driver and also make it available for user to define it.