]> git.baikalelectronics.ru Git - kernel.git/commit
Input: regulator-haptic - simplify code
authorAxel Lin <axel.lin@ingics.com>
Sat, 10 Jan 2015 01:43:06 +0000 (17:43 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 11 Jan 2015 23:52:59 +0000 (15:52 -0800)
commitfe00ef5cf1ea545914169cf07894b953e58d9576
tree5752ccd4871f825d4f89acaa3d26a9c3a74875ec
parent4e05f7b5c5cc3d305c6512fbe7884d651cfc5e56
Input: regulator-haptic - simplify code

All the use cases in this driver has a regulator_haptic_toggle() call after
regulator_haptic_set_voltage(). So make regulator_haptic_set_voltage() call
regulator_haptic_toggle() to simplify the code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/regulator-haptic.c