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

Commit d54f34fc authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: qcom-hv-haptics: correct pattern source checking logic"

parents 495a16b4 885fb73a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -884,8 +884,8 @@ static int haptics_load_predefined_effect(struct haptics_chip *chip,
		return rc;

	play->pattern_src = play->effect->src;
	if (play->pattern_src != PATTERN1 ||
			play->pattern_src != PATTERN2 ||
	if (play->pattern_src != PATTERN1 &&
			play->pattern_src != PATTERN2 &&
			play->pattern_src != FIFO) {
		dev_err(chip->dev, "pattern src %d can't be used for predefined effect\n",
				play->pattern_src);