aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/input/sec-input-bridge.h
blob: 0e5aa59db9779e59ce4d718c660276c901e028c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef LINUX_INPUT_SEC_INPUT_BRIDGE_H
#define LINUX_INPUT_SEC_INPUT_BRIDGE_H

#include <linux/kobject.h>

enum mkey_check_option {
	MKEY_CHECK_AUTO,
	MKEY_CHECK_AWAYS
};

struct sec_input_bridge_mkey {
	unsigned int type;
	unsigned int code;
	enum mkey_check_option option;
};

struct sec_input_bridge_mmap {
	const struct sec_input_bridge_mkey *mkey_map;
	unsigned int num_mkey;
	const char *uevent_env_str;
	const char *uevent_env_value;
	const unsigned char enable_uevent;
	void (*pre_event_func)(void *event_data);
	enum kobject_action uevent_action;
};

struct sec_input_bridge_platform_data {
	void *event_data;

	const struct sec_input_bridge_mmap *mmap;
	unsigned int num_map;
	void (*lcd_warning_func)(void);
};

#endif /* LINUX_INPUT_SEC_INPUT_BRIDGE_H */