Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | #ifndef __USFCDEV_H__ |
| 14 | #define __USFCDEV_H__ |
| 15 | |
| 16 | #include <linux/input.h> |
| 17 | |
| 18 | /* TSC event type index in the containers of the handlers & handles */ |
| 19 | #define TSC_EVENT_TYPE_IND 0 |
| 20 | /* Number of supported event types to be filtered */ |
| 21 | #define MAX_EVENT_TYPE_NUM 1 |
| 22 | |
| 23 | bool usfcdev_register( |
| 24 | uint16_t event_type_ind, |
| 25 | bool (*match_cb)(uint16_t, struct input_dev *dev)); |
| 26 | void usfcdev_unregister(uint16_t event_type_ind); |
| 27 | bool usfcdev_set_filter(uint16_t event_type_ind, bool filter); |
| 28 | #endif /* __USFCDEV_H__ */ |