From a561130806b2904e90566b651c95f01d281b5868 Mon Sep 17 00:00:00 2001 From: Beat Liechti Date: Fri, 5 Jan 2024 11:05:58 +0100 Subject: [PATCH] Include for kernel versions >= 6.2 --- gpio-nct5104d.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpio-nct5104d.c b/gpio-nct5104d.c index 98a150f..0adc1e3 100644 --- a/gpio-nct5104d.c +++ b/gpio-nct5104d.c @@ -15,6 +15,9 @@ #include #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0) +#include +#endif #define DRVNAME "gpio-nct5104d"