OSDN Git Service

can: dev: move driver related infrastructure into separate subdir
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 11 Jan 2021 14:19:17 +0000 (15:19 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 13 Jan 2021 08:42:58 +0000 (09:42 +0100)
This patch moves the CAN driver related infrastructure into a separate subdir.
It will be split into more files in the coming patches.

Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20210111141930.693847-3-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/Makefile
drivers/net/can/dev/Makefile [new file with mode: 0644]
drivers/net/can/dev/dev.c [moved from drivers/net/can/dev.c with 100% similarity]
drivers/net/can/dev/rx-offload.c [moved from drivers/net/can/rx-offload.c with 100% similarity]

index 2216430..a2b4463 100644 (file)
@@ -7,12 +7,7 @@ obj-$(CONFIG_CAN_VCAN)         += vcan.o
 obj-$(CONFIG_CAN_VXCAN)                += vxcan.o
 obj-$(CONFIG_CAN_SLCAN)                += slcan.o
 
-obj-$(CONFIG_CAN_DEV)          += can-dev.o
-can-dev-y                      += dev.o
-can-dev-y                      += rx-offload.o
-
-can-dev-$(CONFIG_CAN_LEDS)     += led.o
-
+obj-y                          += dev/
 obj-y                          += rcar/
 obj-y                          += spi/
 obj-y                          += usb/
diff --git a/drivers/net/can/dev/Makefile b/drivers/net/can/dev/Makefile
new file mode 100644 (file)
index 0000000..cba92e6
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0
+
+obj-$(CONFIG_CAN_DEV)          += can-dev.o
+can-dev-y                      += dev.o
+can-dev-y                      += rx-offload.o
+
+can-dev-$(CONFIG_CAN_LEDS)     += led.o