diff options
| author | Ping Li <pingli@codeaurora.org> | 2015-06-18 23:59:05 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:43:25 -0700 |
| commit | 9040e63de821bea9a8b1085c07bdd2c8767de073 (patch) | |
| tree | 10329c5adb093482513760700fc67e0483f9bfdd | |
| parent | e95e4f1d5cd99a800c1a57faa685183b7764bd6e (diff) | |
msm: mdss: Correct the condition check for AD input ioctl
One of the condition checks in ad_input ioctl is to check the input
mode is not MDSS_AD_CALIB_MODE. The current code missed one pair
of brackets and made the check invalid. Correct the check to fix
the bug.
Change-Id: I82a083fe8a1bef6c57a01e20e02fdd14f8c09bde
Signed-off-by: Ping Li <pingli@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_pp.c | 2 |
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 837582562f45..0ec60c280292 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pp.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pp.c @@ -4890,7 +4890,7 @@ int mdss_mdp_ad_input(struct msm_fb_data_type *mfd, mutex_lock(&ad->lock); if ((!PP_AD_STATE_IS_INITCFG(ad->state) && !PP_AD_STS_IS_DIRTY(ad->sts)) && - !input->mode == MDSS_AD_MODE_CALIB) { + (input->mode != MDSS_AD_MODE_CALIB)) { pr_warn("AD not initialized or configured.\n"); ret = -EPERM; goto error; |
