diff options
| author | Charles Keepax <[email protected]> | 2015-12-03 00:13:54 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2015-12-03 00:22:11 +0000 |
| commit | 1cf44efa1e4f0adc6998ad3087fa5220b682743c (patch) | |
| tree | aed61ef33f8cb9bd4f84d1678732b3b131f22281 | |
| parent | Input: aiptek - fix crash on detecting device without endpoints (diff) | |
| download | kernel-1cf44efa1e4f0adc6998ad3087fa5220b682743c.tar.gz kernel-1cf44efa1e4f0adc6998ad3087fa5220b682743c.zip | |
Input: arizona-haptic - fix disabling of haptics device
A small copy and paste error was preventing the haptics device being
disabled. This patch corrects the value written on disable.
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
| -rw-r--r-- | drivers/input/misc/arizona-haptics.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/misc/arizona-haptics.c b/drivers/input/misc/arizona-haptics.c index 4bf678541496..d5994a745ffa 100644 --- a/drivers/input/misc/arizona-haptics.c +++ b/drivers/input/misc/arizona-haptics.c @@ -97,8 +97,7 @@ static void arizona_haptics_work(struct work_struct *work) ret = regmap_update_bits(arizona->regmap, ARIZONA_HAPTICS_CONTROL_1, - ARIZONA_HAP_CTRL_MASK, - 1 << ARIZONA_HAP_CTRL_SHIFT); + ARIZONA_HAP_CTRL_MASK, 0); if (ret != 0) { dev_err(arizona->dev, "Failed to stop haptics: %d\n", ret); |
