blob: 8f43384ed0abbc3091c02b1475b34519987fa6d6 (
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
37
38
39
40
41
42
43
44
45
46
47
|
/*
* include/linux/melfas_ts.h - platform data structure for MMS Series sensor
*
* Copyright (C) 2010 Melfas, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* 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 _LINUX_MELFAS_TS_H
#define _LINUX_MELFAS_TS_H
#define MELFAS_TS_NAME "melfas-ts"
struct melfas_tsi_platform_data {
int x_size;
int y_size;
int version;
int gpio_int;
int (*power)(int on);
void (*input_event)(void *data);
bool mt_protocol_b;
bool enable_btn_touch;
void (*set_touch_i2c)(void);
void (*set_touch_i2c_to_gpio)(void);
#ifdef CONFIG_INPUT_FBSUSPEND
struct notifier_block fb_notif;
#endif
#if defined(CONFIG_MACH_M0_CHNOPEN) || \
defined(CONFIG_MACH_M0_CMCC) || defined(CONFIG_MACH_M0_CTC)
int (*lcd_type)(void);
#endif
};
#endif /* _LINUX_MELFAS_TS_H */
|