Skip to content

Commit

Permalink
Input: arizona-haptic - fix disabling of haptics device
Browse files Browse the repository at this point in the history
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 <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Charles Keepax authored and Dmitry Torokhov committed Dec 3, 2015
1 parent 8e20cf2 commit 1cf44ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/input/misc/arizona-haptics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1cf44ef

Please sign in to comment.