summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorPing Li <pingli@codeaurora.org>2014-09-17 16:00:22 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:35:08 -0700
commit46df6224bcfc9352cac2d469ee2a7e9d0c1dc596 (patch)
tree8d0e6c562ec399a962bd1a223b3ad0bdb1e694ba /drivers/video/fbdev
parent8282ffafe34560b886e6621506f272e00f843b57 (diff)
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>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_pp.c b/drivers/video/fbdev/msm/mdss_mdp_pp.c
index ee6493e660ad..acfd5f1f066b 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_pp.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_pp.c
@@ -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;
}