Use LoadHookContext instead of the deprecated BaseContext

Also gofmt the file.

Test: m checkbuild
Change-Id: Ib873f7d0434a339383963c9dfbefc8de11c9e0ae
diff --git a/display_defaults.go b/display_defaults.go
index 84d06df..2a32280 100644
--- a/display_defaults.go
+++ b/display_defaults.go
@@ -1,8 +1,8 @@
 package display
 
 import (
-        "android/soong/android"
-        "android/soong/cc"
+	"android/soong/android"
+	"android/soong/cc"
 
 	"github.com/google/blueprint/proptools"
 )
@@ -11,7 +11,7 @@
 	android.RegisterModuleType("display_go_defaults_sm7150", display_DefaultsFactory)
 }
 
-func display_DefaultsFactory() (android.Module) {
+func display_DefaultsFactory() android.Module {
 	module := cc.DefaultsFactory()
 	android.AddLoadHook(module, display_Defaults)
 	return module
@@ -26,7 +26,7 @@
 	ctx.AppendProperties(p)
 }
 
-func display_globalDefaults(ctx android.BaseContext) (*bool) {
+func display_globalDefaults(ctx android.LoadHookContext) *bool {
 	var module_enabled *bool
 
 	if android.ExistentPathForSource(ctx, "vendor/qcom/sm7150/codeaurora/commonsys-intf/display/Android.bp").Valid() == false {
@@ -35,4 +35,3 @@
 
 	return module_enabled
 }
-