aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/mms_ts_gc.h
blob: 318dadfc60cbc6bbe8fdc621868f22c26115dc4d (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
/*
 * mms_ts.h - Platform data for Melfas MMS-series touch driver
 *
 * Copyright (C) 2011 Google Inc.
 * Author: Dima Zavin <dima@android.com>
 *
 *
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 *
 */

#ifndef _LINUX_MMS_TOUCH_H
#define _LINUX_MMS_TOUCH_H
#define MELFAS_TS_NAME "melfas-ts"

struct melfas_tsi_platform_data {
	int	max_x;
	int	max_y;

	bool	invert_x;
	bool	invert_y;

	int	gpio_int;
	int	gpio_sda;
	int	gpio_scl;
	int	(*mux_fw_flash)(bool to_gpios);
	int	(*power)(int on);
	const char	*fw_name;
	const u8	*config_fw_version;
	void	(*input_event)(void *data);
	void	(*register_cb)(void *);
};
extern struct class *sec_class;
void tsp_charger_infom(bool en);

#endif /* _LINUX_MMS_TOUCH_H */