Browse Source

disp: msm: sde: cleanup data scope of _sde_kms_get_splash_data

In order to assign a 'type' to the accumulated sde_splash_data,
the function _sde_kms_get_splash_data was extended to
receive the entire sde_kms object. This change is unnecessary
as the sde_splash_data structure to modify is already provided.

Update _sde_kms_get_splash_data to no longer receive
the sde_kms structure, and instead set the type on the provided
splash_data struct.

Change-Id: I6faf2c54c84a0157597d339c0123a2033e1dc632
Signed-off-by: Christopher Braga <[email protected]>
Christopher Braga 5 years ago
parent
commit
484abb02a1
1 changed files with 3 additions and 4 deletions
  1. 3 4
      msm/sde/sde_kms.c

+ 3 - 4
msm/sde/sde_kms.c

@@ -4047,8 +4047,7 @@ static int sde_kms_pd_disable(struct generic_pm_domain *genpd)
 	return 0;
 	return 0;
 }
 }
 
 
-static int _sde_kms_get_splash_data(struct sde_kms *sde_kms,
-			struct sde_splash_data *data)
+static int _sde_kms_get_splash_data(struct sde_splash_data *data)
 {
 {
 	int i = 0;
 	int i = 0;
 	int ret = 0;
 	int ret = 0;
@@ -4131,7 +4130,7 @@ static int _sde_kms_get_splash_data(struct sde_kms *sde_kms,
 				splash_display->splash->splash_buf_size);
 				splash_display->splash->splash_buf_size);
 	}
 	}
 
 
-	sde_kms->splash_data.type = SDE_SPLASH_HANDOFF;
+	data->type = SDE_SPLASH_HANDOFF;
 
 
 	return ret;
 	return ret;
 }
 }
@@ -4484,7 +4483,7 @@ static int sde_kms_hw_init(struct msm_kms *kms)
 	if (rc)
 	if (rc)
 		goto error;
 		goto error;
 
 
-	rc = _sde_kms_get_splash_data(sde_kms, &sde_kms->splash_data);
+	rc = _sde_kms_get_splash_data(&sde_kms->splash_data);
 	if (rc)
 	if (rc)
 		SDE_DEBUG("sde splash data fetch failed: %d\n", rc);
 		SDE_DEBUG("sde splash data fetch failed: %d\n", rc);