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

Commit 58449c1a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: misc: correct condition check for touch resolution"

parents 916ae872 c8b814a0
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;
		}