gpio_keys.h 401 B

12345678910111213141516171819
  1. #ifndef _GPIO_KEYS_H
  2. #define _GPIO_KEYS_H
  3. struct gpio_keys_button {
  4. /* Configuration parameters */
  5. int code; /* input event code (KEY_*, SW_*) */
  6. int gpio;
  7. int active_low;
  8. char *desc;
  9. int type; /* input event type (EV_KEY, EV_SW) */
  10. int wakeup; /* configure the button as a wake-up source */
  11. };
  12. struct gpio_keys_platform_data {
  13. struct gpio_keys_button *buttons;
  14. int nbuttons;
  15. };
  16. #endif