Merge current mainline tree into linux-omap tree
[pandora-kernel.git] / include / linux / i2c / lm8323.h
1 /*
2  * include/lm8323.h
3  *
4  * Configuration for LM8323 keypad driver.
5  */
6
7 #ifndef __LINUX_LM8323_H
8 #define __LINUX_LM8323_H
9
10 #include <linux/types.h>
11
12 /*
13  * Largest keycode that the chip can send, plus one,
14  * so keys can be mapped directly at the index of the
15  * LM8323 keycode instead of subtracting one.
16  */
17 #define LM8323_KEYMAP_SIZE (0x7f + 1)
18
19 struct lm8323_platform_data {
20         int debounce_time; /* Time to watch for key bouncing, in ms. */
21         int active_time; /* Idle time until sleep, in ms. */
22
23         int size_x;
24         int size_y;
25         int repeat : 1;
26         const s16 *keymap;
27
28         char *pwm1_name; /* Device name for PWM1. */
29         char *pwm2_name; /* Device name for PWM2. */
30         char *pwm3_name; /* Device name for PWM3. */
31
32         char *name; /* Device name. */
33 };
34
35 void __init lm8323_set_platform_data(struct lm8323_platform_data *pdata);
36
37 #endif /* __LINUX_LM8323_H */