Input: pm8xxx-vib - handle separate enable register
authorDamien Riegel <damien.riegel@savoirfairelinux.com>
Tue, 4 Apr 2017 23:27:36 +0000 (16:27 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 5 Apr 2017 15:52:38 +0000 (08:52 -0700)
commitd4c7c5c96c9254017a1aff596a1f43b5bcef7bef
tree103c5c926f265c3debb18f5df68dbd3e71eae200
parent2de3b7048d029fef8f5c25faa1483f5e66402e49
Input: pm8xxx-vib - handle separate enable register

Some PMIC vibrator IPs use a separate enable register to turn the
vibrator on and off. To detect if a vibrator uses this feature, rely on
the enable_mask being non-zero.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pm8xxx-vibrator.c