gpio-nct5104d: fix compilation with kernel 6.6
authorRosen Penev <rosenp@gmail.com>
Sun, 12 May 2024 21:38:59 +0000 (14:38 -0700)
committerRobert Marko <robimarko@gmail.com>
Mon, 13 May 2024 08:15:17 +0000 (10:15 +0200)
gpio.h has been deprecated for a while and no longer compiles with 6.6.
Include the proper header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15471
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/gpio-nct5104d/src/gpio-nct5104d.c

index 5343d6e3a8d13d55255c0adcc3efd65bda63f1d7..eb1cf8494abe2b317775be145aa9672010d82b8c 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/version.h>
 #include <linux/dmi.h>
 #include <linux/string.h>