Merge tag 'close-range-openat2-v5.11' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / gpio / gpiolib.h
index 6709f79..b674b5b 100644 (file)
@@ -114,6 +114,8 @@ struct gpio_desc {
 #define FLAG_PULL_UP    13     /* GPIO has pull up enabled */
 #define FLAG_PULL_DOWN  14     /* GPIO has pull down enabled */
 #define FLAG_BIAS_DISABLE    15        /* GPIO has pull disabled */
+#define FLAG_EDGE_RISING     16        /* GPIO CDEV detects rising edge events */
+#define FLAG_EDGE_FALLING    17        /* GPIO CDEV detects falling edge events */
 
        /* Connection label */
        const char              *label;
@@ -122,6 +124,10 @@ struct gpio_desc {
 #ifdef CONFIG_OF_DYNAMIC
        struct device_node      *hog;
 #endif
+#ifdef CONFIG_GPIO_CDEV
+       /* debounce period in microseconds */
+       unsigned int            debounce_period_us;
+#endif
 };
 
 int gpiod_request(struct gpio_desc *desc, const char *label);