regulator: Add get_period
Fix p command format