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 <cbraga@codeaurora.org>
This commit is contained in:

committed by
Gopikrishnaiah Anandan

vanhempi
87e6558847
commit
484abb02a1
@@ -4047,8 +4047,7 @@ static int sde_kms_pd_disable(struct generic_pm_domain *genpd)
|
||||
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 ret = 0;
|
||||
@@ -4131,7 +4130,7 @@ static int _sde_kms_get_splash_data(struct sde_kms *sde_kms,
|
||||
splash_display->splash->splash_buf_size);
|
||||
}
|
||||
|
||||
sde_kms->splash_data.type = SDE_SPLASH_HANDOFF;
|
||||
data->type = SDE_SPLASH_HANDOFF;
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -4484,7 +4483,7 @@ static int sde_kms_hw_init(struct msm_kms *kms)
|
||||
if (rc)
|
||||
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)
|
||||
SDE_DEBUG("sde splash data fetch failed: %d\n", rc);
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user