]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/linux/i2c/lm8323.h
I2C: LM8323: Introduce lm8323 keypad driver
[linux-2.6-omap-h63xx.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         u16 irq_gpio;
21
22         int debounce_time; /* Time to watch for key bouncing, in ms. */
23         int active_time; /* Idle time until sleep, in ms. */
24
25         int size_x;
26         int size_y;
27         int repeat : 1;
28         const s16 *keymap;
29
30         char *pwm1_name; /* Device name for PWM1. */
31         char *pwm2_name; /* Device name for PWM2. */
32         char *pwm3_name; /* Device name for PWM3. */
33
34         char *name; /* Device name. */
35 };
36
37 void __init lm8323_set_platform_data(struct lm8323_platform_data *pdata);
38
39 #endif /* __LINUX_LM8323_H */