3 Commits

Author SHA1 Message Date
Steve Pfetsch
570383fbf0 input: touchscreen: touch_offload: register char dev node
Dynamically select major device number and register the touch_offload
device at /dev/touch_offload when the driver is initialized.

Bug: 139955910
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: I5cb01b236fc0733d698898697c83ac117b975501
2020-03-25 21:59:14 +00:00
Steve Pfetsch
6db7f2c22d input: touchscreen: change struct attribute in touch_offload.h
The packed attribute on some data structures in touch_offload.h must be
placed after the definition to prevent clean_header.py from omitting the
struct.

Bug: 139955910
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: I2a62b3c259b0872e6f078688bcdc903709e7e0a0
2020-03-23 21:19:11 +00:00
Steve Pfetsch
0d4d86875d input: touchscreen: touch_offload driver
The touch_offload driver augments traditional touchscreen drivers with
the ability to capture and export heatmap and coordinate touch data for
processing in user space. The driver's client can query the touch data
available, configure which content is captured, read queued data as it
is captured, and report detected touch events back to the driver.

Bug: 139955910
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: Ifa2f003f281bfdf6f289ee3b15cd1ee47220f0ec
2020-03-18 00:25:53 +00:00