msm: mdss: change error return value for lineptr sysfs entries
Changing the error return value for lineptr sysfs entries, when the sysfs operation is not allowed. Returning EAGAIN might make the verification tests to continuously query the sysfs nodes, or block it. Returning EPERM will fail the query, which is expected. Change-Id: I43500c07a318da9e2624a1631134228ad45e1cc7 Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
This commit is contained in:
parent
d3c9cb55ae
commit
1e4b598042
1 changed files with 2 additions and 2 deletions
|
@ -3242,7 +3242,7 @@ static ssize_t mdss_mdp_lineptr_show_event(struct device *dev,
|
|||
if (!mdp5_data->ctl ||
|
||||
(!mdp5_data->ctl->panel_data->panel_info.cont_splash_enabled
|
||||
&& !mdss_mdp_ctl_is_power_on(mdp5_data->ctl)))
|
||||
return -EAGAIN;
|
||||
return -EPERM;
|
||||
|
||||
lineptr_ticks = ktime_to_ns(mdp5_data->lineptr_time);
|
||||
|
||||
|
@ -3263,7 +3263,7 @@ static ssize_t mdss_mdp_lineptr_show_value(struct device *dev,
|
|||
if (!mdp5_data->ctl ||
|
||||
(!mdp5_data->ctl->panel_data->panel_info.cont_splash_enabled
|
||||
&& !mdss_mdp_ctl_is_power_on(mdp5_data->ctl)))
|
||||
return -EAGAIN;
|
||||
return -EPERM;
|
||||
|
||||
lineptr_val = mfd->panel_info->te.wr_ptr_irq;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue