summaryrefstree
path: root/kernel/include/linux/input/tsp_ta_callback.h
blob: 812c0140ee207665e9a7f0de604421385610b2bb (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

#ifndef _TSP_TA_CALLBACK_H_
#define _TSP_TA_CALLBACK_H_

#ifdef CONFIG_EXTCON
#undef USE_TSP_TA_CALLBACKS
#else

/* Model define */
#if defined(CONFIG_TOUCHSCREEN_TA_CALLBACK_ENABLE)
#define USE_TSP_TA_CALLBACKS
#else	/* default */
#undef USE_TSP_TA_CALLBACKS
#endif

#endif	/* CONFIG_EXTCON */

#ifdef USE_TSP_TA_CALLBACKS
extern struct tsp_callbacks *charger_callbacks;
struct tsp_callbacks {
	void (*inform_charger)(struct tsp_callbacks *, int);
};
#endif

#endif /* _TSP_TA_CALLBACK_H_ */