omap: consolidate touch screen initialization among different boards
[deliverable/linux.git] / arch / arm / mach-omap2 / common-board-devices.h
1 #ifndef __OMAP_COMMON_BOARD_DEVICES__
2 #define __OMAP_COMMON_BOARD_DEVICES__
3
4 #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \
5 defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
6 struct ads7846_platform_data;
7
8 void omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce,
9 struct ads7846_platform_data *board_pdata);
10 #else
11 static inline void omap_ads7846_init(int bus_num,
12 int gpio_pendown, int gpio_debounce,
13 struct ads7846_platform_data *board_data)
14 {
15 }
16 #endif
17
18 #endif /* __OMAP_COMMON_BOARD_DEVICES__ */
This page took 0.101476 seconds and 5 git commands to generate.