Implement inline function to get linreg offset
Fix indent for regulator ops
Add init function for regulators
Add necessary register defines