blob: 7b8bce7b372126087457b4ff1bd5e038b5446234 [file] [log] [blame]
Meng Wang688a8672019-01-29 13:43:33 +08001/* SPDX-License-Identifier: GPL-2.0-only */
Meng Wang61af6842018-09-10 17:47:55 +08002/*
3 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Asish Bhattacharya8e2277f2017-07-20 18:31:55 +05304 */
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
15bool usfcdev_register(
16 uint16_t event_type_ind,
17 bool (*match_cb)(uint16_t, struct input_dev *dev));
18void usfcdev_unregister(uint16_t event_type_ind);
19bool usfcdev_set_filter(uint16_t event_type_ind, bool filter);
20#endif /* __USFCDEV_H__ */