summaryrefslogtreecommitdiff
path: root/common/i2c_hid_touchpad.c
Commit message (Collapse)AuthorAgeFilesLines
* common: Sort header filesJeremy Bettis2022-11-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | Sort all includes in common with the clang-format rules used by the zephyr project. BRANCH=None BUG=b:247100970 TEST=zmake build -a TEST=./twister --clobber -v -i TEST=make -j72 buildall_only runtests TEST=zmake compare-builds -a Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I70c2ed7bb2ce50c968f3e2dbdc274de3a455129a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4049889 Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* Update license boilerplate text in source code filesMike Frysinger2022-09-121-1/+1
| | | | | | | | | | | | | | | Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BRANCH=none BUG=chromium:1098010 TEST=`repo upload` works Change-Id: Icd3a1723c20595356af83d190b2c6a9078b3013b Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891203 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* common/i2c_hid_touchpad.c: Format with clang-formatJack Rosenthal2022-06-281-272/+250
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I74dc1b97fcf8478bf130c00470d3327df04d4ba7 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729636 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* i2c_hid_touchpad: Add function to prepare new input reportsShecky Lin2020-03-171-0/+132
| | | | | | | | | | | | | | | | | | | This is part of a chain to add a common I2C HID interface for touchpads. The CL adds a function to put a new input report in the buffer which would be sent next time when the host tries to read one. BUG=chromium:1008568 BRANCH=none TEST=Build and run on MCU to forward touchpad events to host through I2C HID. Cq-Depend: chromium:2094928 Change-Id: I321054f73155da03d951a4d586dd316caf37f0fc Signed-off-by: Shecky Lin <sheckylin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2094929 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
* i2c_hid_touchpad: Add init and request handlersShecky Lin2020-03-171-0/+245
| | | | | | | | | | | | | | | | | | | This is part of a chain to add a common I2C HID interface for touchpads. The CL adds an init function for I2C HID touchpad and implements a handler that can process I2C HID requests from the host. BUG=chromium:1008568 BRANCH=none TEST=Build and run on MCU to forward touchpad events to host through I2C HID. Signed-off-by: Shecky Lin <sheckylin@chromium.org> Cq-Depend: chromium:2094927 Change-Id: I58d46031396976eb3bf02e1b5516e92a9cd88ed4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2094928 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
* i2c_hid_touchpad: Add basic structs and descriptorsShecky Lin2020-03-171-0/+420
This is part of a chain to add a common I2C HID interface for touchpads. The CL layouts basic struct, defines and HID descriptors that would be used by an I2C HID touchpad implementation. BUG=chromium:1008568 BRANCH=none TEST=Build and run on MCU to forward touchpad events to host through I2C HID. Change-Id: I89108f0cdce1a9a11bf1e26e43c6662959c7184e Signed-off-by: Shecky Lin <sheckylin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2094927