linux-libc-headers: refresh patch to add Digi debounce IOCTL to kernel v5.4

Digi customized linux kernel gpio.h file to allow debounce functionality by the
user space through the character device.
This commit patches the gpio.h file that is used to generate the SDK (which comes
from kernel 5.4) with Digi debounce additions.

https://jira.digi.com/browse/DEL-7027

Signed-off-by: Hector Bujanda hector.bujanda@digi.com
This commit is contained in:
Hector Bujanda 2020-04-27 01:20:08 +02:00 committed by Arturo Buzarra
parent 940582f172
commit d38ed61287
2 changed files with 4 additions and 7 deletions

View File

@ -15,13 +15,13 @@ Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
1 file changed, 12 insertions(+)
diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h
index 1bf6e6df084b..4b092990d4c8 100644
index 4ebfe0ac6c5b..95569071f11b 100644
--- a/include/uapi/linux/gpio.h
+++ b/include/uapi/linux/gpio.h
@@ -53,6 +53,17 @@ struct gpioline_info {
char consumer[32];
};
+/**
+ * struct gpioline_debounce - GPIO line debounce
+ * @line_offset: the local offset on this GPIO device, fill this in when
@ -35,14 +35,11 @@ index 1bf6e6df084b..4b092990d4c8 100644
+
/* Maximum number of requested handles */
#define GPIOHANDLES_MAX 64
@@ -154,5 +165,6 @@ struct gpioevent_data {
#define GPIO_GET_LINEINFO_IOCTL _IOWR(0xB4, 0x02, struct gpioline_info)
#define GPIO_GET_LINEHANDLE_IOCTL _IOWR(0xB4, 0x03, struct gpiohandle_request)
#define GPIO_GET_LINEEVENT_IOCTL _IOWR(0xB4, 0x04, struct gpioevent_request)
+#define GPIO_SET_DEBOUNCE_IOCTL _IOW(0xB4, 0x05, struct gpioline_debounce)
#endif /* _UAPI_GPIO_H_ */
--
2.17.1
#endif /* _UAPI_GPIO_H_ */