]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bus: firewall: move stm32_firewall header file in include folder
authorClément Le Goffic <clement.legoffic@foss.st.com>
Tue, 10 Feb 2026 19:05:45 +0000 (20:05 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Wed, 25 Mar 2026 16:40:21 +0000 (17:40 +0100)
Other driver than RIFSC and ETZPC can implement firewall ops, such as
RCC.
In order for them to have access to the ops and type of this framework,
we need to get the `stm32_firewall.h` file in the include/ folder.

Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Signed-off-by: Clément Le Goffic <legoffic.clement@gmail.com>
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Link: https://lore.kernel.org/r/20260210-b4-firewall-upstream-v8-1-097c1e47af82@gmail.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
drivers/bus/stm32_etzpc.c
drivers/bus/stm32_firewall.c
drivers/bus/stm32_rifsc.c
include/linux/bus/stm32_firewall.h [moved from drivers/bus/stm32_firewall.h with 100% similarity]

index 7fc0f16960be3edbbd2752d4bec13c66e6696fec..4918a14e507ef8dadcb5cc0a4a50bc08621fa5c4 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <linux/bitfield.h>
 #include <linux/bits.h>
+#include <linux/bus/stm32_firewall.h>
 #include <linux/device.h>
 #include <linux/err.h>
 #include <linux/init.h>
@@ -16,8 +17,6 @@
 #include <linux/platform_device.h>
 #include <linux/types.h>
 
-#include "stm32_firewall.h"
-
 /*
  * ETZPC registers
  */
index 7e7afe8007dbccf1b445ec1888395bbecb08131f..bbcf42ad668aee8cb789dba0d4ab5c8050f21ad4 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <linux/bitfield.h>
 #include <linux/bits.h>
+#include <linux/bus/stm32_firewall.h>
 #include <linux/bus/stm32_firewall_device.h>
 #include <linux/device.h>
 #include <linux/err.h>
@@ -18,8 +19,6 @@
 #include <linux/types.h>
 #include <linux/slab.h>
 
-#include "stm32_firewall.h"
-
 /* Corresponds to STM32_FIREWALL_MAX_EXTRA_ARGS + firewall ID */
 #define STM32_FIREWALL_MAX_ARGS                (STM32_FIREWALL_MAX_EXTRA_ARGS + 1)
 
index debeaf8ea1bd2baaa3e83827dce281992ac74fe6..65990ae8dd08abe80021cb8213c58ebb9686d5ec 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <linux/bitfield.h>
 #include <linux/bits.h>
+#include <linux/bus/stm32_firewall.h>
 #include <linux/debugfs.h>
 #include <linux/device.h>
 #include <linux/err.h>
@@ -17,8 +18,6 @@
 #include <linux/platform_device.h>
 #include <linux/types.h>
 
-#include "stm32_firewall.h"
-
 /*
  * RIFSC offset register
  */