diff --git a/driver/ch343.c b/driver/ch343.c index f6c6125..fbca00b 100644 --- a/driver/ch343.c +++ b/driver/ch343.c @@ -58,7 +58,13 @@ #include #include #include + +// Support old and new kernel versions. +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0)) +#include +#else #include +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) #include