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:
parent
ac34679e2d
commit
d7c55e40f1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue