Skip to content

Commit 104594b

Browse files
Donggeun Kimdtor
authored andcommitted
Input: add driver support for MAX8997-haptic
The MAX8997-haptic function can be used to control motor. User can control the haptic driver by using force feedback framework. Signed-off-by: Donggeun Kim <[email protected]> Signed-off-by: MyungJoo Ham <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Acked-by: Samuel Ortiz <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 145e973 commit 104594b

File tree

4 files changed

+472
-1
lines changed

4 files changed

+472
-1
lines changed

drivers/input/misc/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ config INPUT_MAX8925_ONKEY
134134
To compile this driver as a module, choose M here: the module
135135
will be called max8925_onkey.
136136

137+
config INPUT_MAX8997_HAPTIC
138+
tristate "MAXIM MAX8997 haptic controller support"
139+
depends on HAVE_PWM && MFD_MAX8997
140+
select INPUT_FF_MEMLESS
141+
help
142+
This option enables device driver support for the haptic controller
143+
on MAXIM MAX8997 chip. This driver supports ff-memless interface
144+
from input framework.
145+
146+
To compile this driver as module, choose M here: the
147+
module will be called max8997-haptic.
148+
137149
config INPUT_MC13783_PWRBUTTON
138150
tristate "MC13783 ON buttons"
139151
depends on MFD_MC13783

drivers/input/misc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ obj-$(CONFIG_INPUT_KEYSPAN_REMOTE) += keyspan_remote.o
3131
obj-$(CONFIG_INPUT_KXTJ9) += kxtj9.o
3232
obj-$(CONFIG_INPUT_M68K_BEEP) += m68kspkr.o
3333
obj-$(CONFIG_INPUT_MAX8925_ONKEY) += max8925_onkey.o
34+
obj-$(CONFIG_INPUT_MAX8997_HAPTIC) += max8997_haptic.o
3435
obj-$(CONFIG_INPUT_MC13783_PWRBUTTON) += mc13783-pwrbutton.o
3536
obj-$(CONFIG_INPUT_MMA8450) += mma8450.o
3637
obj-$(CONFIG_INPUT_MPU3050) += mpu3050.o

0 commit comments

Comments
 (0)