Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd75e05a authored by Ping Li's avatar Ping Li Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarPing Li <pingli@codeaurora.org>
parent bba41e29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3735,7 +3735,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;
	}