Merge "msm: mdss: change error return value for lineptr sysfs entries"

This commit is contained in:
Linux Build Service Account 2016-11-30 05:40:58 -08:00 committed by Gerrit - the friendly Code Review server
commit 3efbc80d99

View file

@ -3308,7 +3308,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);
@ -3329,7 +3329,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;