ieee802154: create 6lowpan sub-directory
authorAlexander Aring <alex.aring@gmail.com>
Sun, 4 Jan 2015 16:10:53 +0000 (17:10 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 8 Jan 2015 06:25:59 +0000 (07:25 +0100)
This patch creates an 6lowpan sub-directory inside ieee802154.
Additional we move all ieee802154 6lowpan relevant files into
this sub-directory instead of placing the 6lowpan related files
inside ieee802154.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/6lowpan_rtnl.c [moved from net/ieee802154/6lowpan_rtnl.c with 100% similarity]
net/ieee802154/6lowpan/Kconfig [new file with mode: 0644]
net/ieee802154/6lowpan/Makefile [new file with mode: 0644]
net/ieee802154/6lowpan/reassembly.c [moved from net/ieee802154/reassembly.c with 100% similarity]
net/ieee802154/6lowpan/reassembly.h [moved from net/ieee802154/reassembly.h with 100% similarity]
net/ieee802154/Kconfig
net/ieee802154/Makefile

diff --git a/net/ieee802154/6lowpan/Kconfig b/net/ieee802154/6lowpan/Kconfig
new file mode 100644 (file)
index 0000000..d24f985
--- /dev/null
@@ -0,0 +1,5 @@
+config IEEE802154_6LOWPAN
+       tristate "6lowpan support over IEEE 802.15.4"
+       depends on 6LOWPAN
+       ---help---
+         IPv6 compression over IEEE 802.15.4.
diff --git a/net/ieee802154/6lowpan/Makefile b/net/ieee802154/6lowpan/Makefile
new file mode 100644 (file)
index 0000000..936959b
--- /dev/null
@@ -0,0 +1,3 @@
+obj-y += ieee802154_6lowpan.o
+
+ieee802154_6lowpan-y := 6lowpan_rtnl.o reassembly.o
index 9ea0af4..1370d5b 100644 (file)
@@ -20,10 +20,6 @@ config IEEE802154_SOCKET
          for 802.15.4 dataframes. Also RAW socket interface to build MAC
          header from userspace.
 
-config IEEE802154_6LOWPAN
-       tristate "6lowpan support over IEEE 802.15.4"
-       depends on 6LOWPAN
-       ---help---
-         IPv6 compression over IEEE 802.15.4.
+source "net/ieee802154/6lowpan/Kconfig"
 
 endif
index 88bde78..3653397 100644 (file)
@@ -1,8 +1,7 @@
 obj-$(CONFIG_IEEE802154) += ieee802154.o
 obj-$(CONFIG_IEEE802154_SOCKET) += ieee802154_socket.o
-obj-$(CONFIG_IEEE802154_6LOWPAN) += ieee802154_6lowpan.o
+obj-$(CONFIG_IEEE802154_6LOWPAN) += 6lowpan/
 
-ieee802154_6lowpan-y := 6lowpan_rtnl.o reassembly.o
 ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o core.o \
                 header_ops.o sysfs.o nl802154.o
 ieee802154_socket-y := socket.o