···159159 unsigned int mode;160160};161161162162-/* This function is used to set platform data field of pdev->dev */163163-static inline void164164-kbd_set_plat_data(struct platform_device *pdev, struct kbd_platform_data *data)165165-{166166- pdev->dev.platform_data = data;167167-}168168-169162#endif /* __PLAT_KEYBOARD_H */
···66struct gpio_keys_button {77 /* Configuration parameters */88 unsigned int code; /* input event code (KEY_*, SW_*) */99- int gpio;99+ int gpio; /* -1 if this key does not support gpio */1010 int active_low;1111 const char *desc;1212 unsigned int type; /* input event type (EV_KEY, EV_SW, EV_ABS) */···1414 int debounce_interval; /* debounce ticks interval in msecs */1515 bool can_disable;1616 int value; /* axis value for EV_ABS */1717+ unsigned int irq; /* Irq number in case of interrupt keys */1718};18191920struct gpio_keys_platform_data {