From d7c55e40f15aa6be609fde71cdf15eda67eeda87 Mon Sep 17 00:00:00 2001 From: Shantanu Jain Date: Tue, 19 Jan 2016 12:15:42 +0530 Subject: [PATCH] input: misc: correct condition check for touch resolution Correct if condition that checks the touch resolution of the touch panel. Signed-off-by: Shantanu Jain Change-Id: I925cfb306c5503efccc833117ff1753b2e2fcc6a --- drivers/input/misc/hbtp_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/hbtp_input.c b/drivers/input/misc/hbtp_input.c index 2fe56ff541a3..9f5fd6586e54 100644 --- a/drivers/input/misc/hbtp_input.c +++ b/drivers/input/misc/hbtp_input.c @@ -588,8 +588,8 @@ static int hbtp_parse_dt(struct device *dev) * Desired max X should be defined simultaneously, or none * of them should be defined. */ - if (!((hbtp->def_maxy == 0 && hbtp->des_maxy != 0) || - (hbtp->def_maxy != 0 && hbtp->des_maxy == 0))) { + if ((hbtp->def_maxy == 0 && hbtp->des_maxy != 0) || + (hbtp->def_maxy != 0 && hbtp->des_maxy == 0)) { dev_err(dev, "default or desired max-Y properties are incorrect\n"); return -EINVAL; }