Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8b814a0 authored by Shantanu Jain's avatar Shantanu Jain
Browse files

input: misc: correct condition check for touch resolution



Correct if condition that checks the touch resolution of the
touch panel.

Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
Change-Id: I925cfb306c5503efccc833117ff1753b2e2fcc6a
parent d171201f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
		}