input: cyapa: re-architecture driver to support multi-trackpads in one driver
Subsystems (2)
PATCH v5 1/14 input: cyapa: re-architecture driver to support multi-trackpads in one driver
In order to support two different communication protocol based trackpad device in one cyapa, the new cyapa driver is re-designed with one cyapa driver core and two devices' functions component. The cyapa driver core is contained in this patch, it supplies the basic function with input and kernel system and also defined the interfaces that the devices' functions component needs to apply and support. Also, in order to speed up the system boot time, the device states detecting and probing process is put into the async thread. TEST=test on Chromebooks.
Signed-off-by Dudley Du <[email protected]>
--- drivers/input/mouse/Makefile | 4 +- drivers/input/mouse/cyapa.c | 1120 +++++++++++++++--------------------------- drivers/input/mouse/cyapa.h | 275 +++++++++++ 3 files changed, 682 insertions(+), 717 deletions(-) create mode 100644 drivers/input/mouse/cyapa.h
drivers/input/mouse/Makefile +3 -1
@@ -8,7 +8,7 @@ obj-$(CONFIG_MOUSE_AMIGA) += amimouse.o obj-$(CONFIG_MOUSE_APPLETOUCH) += appletouch.o obj-$(CONFIG_MOUSE_ATARI) += atarimouse.o obj-$(CONFIG_MOUSE_BCM5974) += bcm5974.o -obj-$(CONFIG_MOUSE_CYAPA) += cyapa.o +obj-$(CONFIG_MOUSE_CYAPA) += cyapatp.o obj-$(CONFIG_MOUSE_GPIO) += gpio_mouse.o obj-$(CONFIG_MOUSE_INPORT) += inport.o obj-$(CONFIG_MOUSE_LOGIBM) += logibm.o
@@ -34,3 +34,5 @@ psmouse-$(CONFIG_MOUSE_PS2_SENTELIC) += sentelic.o psmouse-$(CONFIG_MOUSE_PS2_TRACKPOINT) += trackpoint.o psmouse-$(CONFIG_MOUSE_PS2_TOUCHKIT) += touchkit_ps2.o psmouse-$(CONFIG_MOUSE_PS2_CYPRESS) += cypress_ps2.o + +cyapatp-y := cyapa.o
drivers/input/mouse/cyapa.c +404 -716
1,320 lines not on this page · raw message
drivers/input/mouse/cyapa.h new file +275 -0
275 lines not on this page · raw message
Signature · 1 line
1.9.1