gpio_keys.h 254 B

1234567891011121314151617
  1. #ifndef _GPIO_KEYS_H
  2. #define _GPIO_KEYS_H
  3. struct gpio_keys_button {
  4. /* Configuration parameters */
  5. int keycode;
  6. int gpio;
  7. int active_low;
  8. char *desc;
  9. };
  10. struct gpio_keys_platform_data {
  11. struct gpio_keys_button *buttons;
  12. int nbuttons;
  13. };
  14. #endif