Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8e227d7 authored by Jing Lin's avatar Jing Lin
Browse files

uapi: hbtp_input: exposes first and last ABS_MT parameter



When user space sets multi-touch parameters on hbtp_input driver
through ioctl, it needs to know the total number of ABS_MT parameters
that are supported by kernel. Add two macros for the first and the
last ABS_MT parameter to expose to user space.

Change-Id: I68ad9dad77facf1d1efcfc9a3d69235b1094d369
Signed-off-by: default avatarJing Lin <jinglin@codeaurora.org>
parent 1989e284
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@
#include <linux/input.h>

#define HBTP_MAX_FINGER		20
#define HBTP_ABS_MT_FIRST	ABS_MT_TOUCH_MAJOR
#define HBTP_ABS_MT_LAST	ABS_MT_TOOL_Y

struct hbtp_input_touch {
	bool active;