blob: 265d17830a0f7500cdc83e393d8950f616ff3c86 [file] [log] [blame]
Phil Blundell78a56aa2007-01-18 00:44:09 -05001#ifndef _GPIO_KEYS_H
2#define _GPIO_KEYS_H
3
4struct gpio_keys_button {
5 /* Configuration parameters */
Roman Moravcik84767d02007-05-01 00:39:13 -04006 int code; /* input event code (KEY_*, SW_*) */
Phil Blundell78a56aa2007-01-18 00:44:09 -05007 int gpio;
8 int active_low;
9 char *desc;
Roman Moravcik84767d02007-05-01 00:39:13 -040010 int type; /* input event type (EV_KEY, EV_SW) */
Phil Blundell78a56aa2007-01-18 00:44:09 -050011};
12
13struct gpio_keys_platform_data {
14 struct gpio_keys_button *buttons;
15 int nbuttons;
16};
17
18#endif