Input: pm8xxx-vib - parametrize the driver
authorDamien Riegel <damien.riegel@savoirfairelinux.com>
Tue, 4 Apr 2017 23:25:57 +0000 (16:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 5 Apr 2017 15:52:37 +0000 (08:52 -0700)
commit2de3b7048d029fef8f5c25faa1483f5e66402e49
tree3312abde90f3c04a0ce0b36f00840b2da85da34b
parentf6bcc91ba632ce35005ed8a3cfa01a2498d2d96a
Input: pm8xxx-vib - parametrize the driver

In order to prepare this driver to support other vibrators of the same
kind, move some hardcoded values to a structure holding register
parameters (address, mask, shit of the control register).

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