Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Charles Keepax and committed by
Dmitry Torokhov
1cf44efa 8e20cf2b

+1 -2
+1 -2
drivers/input/misc/arizona-haptics.c
··· 97 97 98 98 ret = regmap_update_bits(arizona->regmap, 99 99 ARIZONA_HAPTICS_CONTROL_1, 100 - ARIZONA_HAP_CTRL_MASK, 101 - 1 << ARIZONA_HAP_CTRL_SHIFT); 100 + ARIZONA_HAP_CTRL_MASK, 0); 102 101 if (ret != 0) { 103 102 dev_err(arizona->dev, "Failed to stop haptics: %d\n", 104 103 ret);