Files
android_kernel_motorola_sm6225/include/linux/pen_detection_notify.h
T
wengjun1 8bf9ed035b Sofiap: Pen status notification to touch
- Because now we are using stylus on sofiap and this will keep
touch always on high sensitive mode which will easy to lead to
the problem such as ghost touch , residue points etc. So we add
a pen notifier to touch and then the firmware of the touch can adjust
the mode according to the status of the pen.

Change-Id: I328fbe973d960e0decc60b86e4d16140e66e2cb9
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1438179
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-20 21:07:29 -05:00

26 lines
902 B
C

/*
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _PEN_DETECTION_DRM_NOTIFY_H_
#define _PEN_DETECTION_DRM_NOTIFY_H_
#include <linux/notifier.h>
/* The event of pen insertion */
#define PEN_DETECTION_INSERT 0x01
/* The event of pen pull-out */
#define PEN_DETECTION_PULL 0x02
int pen_detection_register_client(struct notifier_block *nb);
int pen_detection_unregister_client(struct notifier_block *nb);
#endif