Meng Wang | 688a867 | 2019-01-29 13:43:33 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Meng Wang | 61af684 | 2018-09-10 17:47:55 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 4 | */ |
| 5 | #ifndef __USFCDEV_H__ |
| 6 | #define __USFCDEV_H__ |
| 7 | |
| 8 | #include <linux/input.h> |
| 9 | |
| 10 | /* TSC event type index in the containers of the handlers & handles */ |
| 11 | #define TSC_EVENT_TYPE_IND 0 |
| 12 | /* Number of supported event types to be filtered */ |
| 13 | #define MAX_EVENT_TYPE_NUM 1 |
| 14 | |
| 15 | bool usfcdev_register( |
| 16 | uint16_t event_type_ind, |
| 17 | bool (*match_cb)(uint16_t, struct input_dev *dev)); |
| 18 | void usfcdev_unregister(uint16_t event_type_ind); |
| 19 | bool usfcdev_set_filter(uint16_t event_type_ind, bool filter); |
| 20 | #endif /* __USFCDEV_H__ */ |