mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
input: qcom-hv-haptics: correct pattern source checking logic
The pattern source check before loading predefined effect is incorrect. Correct it. Change-Id: I8026f6ee24ce17dfe43bc514eeb526300af99746 Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
This commit is contained in:
parent
0cfe100396
commit
885fb73a42
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue