summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-08-07 10:55:19 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-08-07 10:55:19 +0300
commit0074281bb6316108e0cff094bd4db78ab3eee236 (patch)
tree9b5eeb12eed9fd2a8aa329043da7f5150ceb938c /include/linux/input
parent63c7bc53a35e785accdc2ceab8f72d94501931ab (diff)
parent6e64f4580381e32c06ee146ca807c555b8f73e24 (diff)
downloadlinux-0074281bb6316108e0cff094bd4db78ab3eee236.tar.xz
Merge commit '6e64f4580381e32c06ee146ca807c555b8f73e24' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into gpio/for-next
Diffstat (limited to 'include/linux/input')
-rw-r--r--include/linux/input/touch-overlay.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/input/touch-overlay.h b/include/linux/input/touch-overlay.h
new file mode 100644
index 000000000000..0253e554d3cd
--- /dev/null
+++ b/include/linux/input/touch-overlay.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (c) 2023 Javier Carrasco <javier.carrasco@wolfvision.net>
+ */
+
+#ifndef _TOUCH_OVERLAY
+#define _TOUCH_OVERLAY
+
+#include <linux/types.h>
+
+struct input_dev;
+
+int touch_overlay_map(struct list_head *list, struct input_dev *input);
+
+void touch_overlay_get_touchscreen_abs(struct list_head *list, u16 *x, u16 *y);
+
+bool touch_overlay_mapped_touchscreen(struct list_head *list);
+
+bool touch_overlay_process_contact(struct list_head *list,
+ struct input_dev *input,
+ struct input_mt_pos *pos, int slot);
+
+void touch_overlay_sync_frame(struct list_head *list, struct input_dev *input);
+
+#endif