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:
Ping Li 2014-09-17 16:00:22 -07:00 committed by David Keitel
parent 8282ffafe3
commit 46df6224bc

View file

@ -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;
}