summaryrefslogtreecommitdiff
path: root/net/dsa/switch.h
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-11-21 15:55:48 +0200
committerJakub Kicinski <kuba@kernel.org>2022-11-22 20:41:51 -0800
commit0c603136e1e0868fb5325c3b2addc669a10ed384 (patch)
treed26685177c3d4cd44b2286f4004a71d4c3dedd5b /net/dsa/switch.h
parentbd954b826032e7bd6be8a53e30eb81c1b348aef6 (diff)
net: dsa: move headers exported by switch.c to switch.h
Reduce code bloat in dsa_priv.h by moving the prototypes exported by switch.h into their own header file. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa/switch.h')
-rw-r--r--net/dsa/switch.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/dsa/switch.h b/net/dsa/switch.h
new file mode 100644
index 000000000000..b831b6fb45e9
--- /dev/null
+++ b/net/dsa/switch.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef __DSA_SWITCH_H
+#define __DSA_SWITCH_H
+
+struct dsa_switch;
+
+int dsa_switch_register_notifier(struct dsa_switch *ds);
+void dsa_switch_unregister_notifier(struct dsa_switch *ds);
+
+#endif