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 <shjain@codeaurora.org>
Change-Id: I925cfb306c5503efccc833117ff1753b2e2fcc6a
This commit is contained in:
Shantanu Jain 2016-01-19 12:15:42 +05:30 committed by David Keitel
parent ac34679e2d
commit d7c55e40f1

View file

@ -588,8 +588,8 @@ static int hbtp_parse_dt(struct device *dev)
* Desired max X should be defined simultaneously, or none * Desired max X should be defined simultaneously, or none
* of them should be defined. * of them should be defined.
*/ */
if (!((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))) { (hbtp->def_maxy != 0 && hbtp->des_maxy == 0)) {
dev_err(dev, "default or desired max-Y properties are incorrect\n"); dev_err(dev, "default or desired max-Y properties are incorrect\n");
return -EINVAL; return -EINVAL;
} }