Do not abuse platform data for internal driver data, instead use a separate struct for that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
24 lines
312 B
C
24 lines
312 B
C
#ifndef _GPIO_KEYS_H
|
|
#define _GPIO_KEYS_H
|
|
|
|
#include <poller.h>
|
|
#include <kfifo.h>
|
|
|
|
struct gpio_keys_button {
|
|
/* Configuration parameters */
|
|
int code;
|
|
|
|
int gpio;
|
|
int active_low;
|
|
};
|
|
|
|
struct gpio_keys_platform_data {
|
|
struct gpio_keys_button *buttons;
|
|
int nbuttons;
|
|
|
|
/* optional */
|
|
int fifo_size;
|
|
};
|
|
|
|
#endif
|