aboutsummaryrefslogtreecommitdiffstats
path: root/queue-6.8/gpiolib-swnode-remove-wrong-header-inclusion.patch
diff options
context:
space:
mode:
Diffstat (limited to 'queue-6.8/gpiolib-swnode-remove-wrong-header-inclusion.patch')
-rw-r--r--queue-6.8/gpiolib-swnode-remove-wrong-header-inclusion.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/queue-6.8/gpiolib-swnode-remove-wrong-header-inclusion.patch b/queue-6.8/gpiolib-swnode-remove-wrong-header-inclusion.patch
new file mode 100644
index 0000000000..2e2b8ec818
--- /dev/null
+++ b/queue-6.8/gpiolib-swnode-remove-wrong-header-inclusion.patch
@@ -0,0 +1,37 @@
+From 274050bc458734e370408f4f74eb425ba3ed9ec6 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Wed, 17 Apr 2024 17:19:13 +0300
+Subject: gpiolib: swnode: Remove wrong header inclusion
+
+From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+
+[ Upstream commit 69ffed4b62523bbc85511f150500329d28aba356 ]
+
+The flags in the software node properties are supposed to be
+the GPIO lookup flags, which are provided by gpio/machine.h,
+as the software nodes are the kernel internal thing and doesn't
+need to rely to any of ABIs.
+
+Fixes: e7f9ff5dc90c ("gpiolib: add support for software nodes")
+Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ include/linux/gpio/property.h | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/include/linux/gpio/property.h b/include/linux/gpio/property.h
+index 6c75c8bd44a0b..1a14e239221f7 100644
+--- a/include/linux/gpio/property.h
++++ b/include/linux/gpio/property.h
+@@ -2,7 +2,6 @@
+ #ifndef __LINUX_GPIO_PROPERTY_H
+ #define __LINUX_GPIO_PROPERTY_H
+
+-#include <dt-bindings/gpio/gpio.h> /* for GPIO_* flags */
+ #include <linux/property.h>
+
+ #define PROPERTY_ENTRY_GPIO(_name_, _chip_node_, _idx_, _flags_) \
+--
+2.43.0
+