diff options
| author | Shantanu Jain <shjain@codeaurora.org> | 2016-01-19 12:15:42 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:21:54 -0700 |
| commit | d7c55e40f15aa6be609fde71cdf15eda67eeda87 (patch) | |
| tree | 22e10e5822774ce68ee2c20cde5d4a712b3ba00f /drivers/input/misc | |
| parent | ac34679e2d6dcd6563eddee77eaf067df473f7f4 (diff) | |
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
Diffstat (limited to 'drivers/input/misc')
| -rw-r--r-- | drivers/input/misc/hbtp_input.c | 4 |
1 files 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; } |
