msm: mdss: Update histogram return error type
In case of histogram collection call failure due to histogram is not enabled, or histogram state is unknown, return ENODATA instead of EINVALID. Change-Id: I6996345a19a43752827195b9edf786d62f9cbc75 Signed-off-by: Ping Li <pingli@codeaurora.org>
This commit is contained in:
parent
8282ffafe3
commit
46df6224bc
1 changed files with 1 additions and 1 deletions
|
@ -3909,7 +3909,7 @@ static int pp_hist_collect(struct mdp_histogram_data *hist,
|
|||
spin_lock_irqsave(&hist_info->hist_lock, flag);
|
||||
if ((hist_info->col_en == 0) ||
|
||||
(hist_info->col_state == HIST_UNKNOWN)) {
|
||||
ret = -EINVAL;
|
||||
ret = -ENODATA;
|
||||
spin_unlock_irqrestore(&hist_info->hist_lock, flag);
|
||||
goto hist_collect_exit;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue