Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: move SPI drivers into a separate directory

Create a directory for all CAN drivers using SPI and move mcp251x driver there.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Stefano Babic and committed by
Marc Kleine-Budde
869ba1e6 ee967fff

+21 -7
+2 -6
drivers/net/can/Kconfig
··· 77 77 Driver for TI HECC (High End CAN Controller) module found on many 78 78 TI devices. The device specifications are available from www.ti.com 79 79 80 - config CAN_MCP251X 81 - tristate "Microchip MCP251x SPI CAN controllers" 82 - depends on SPI && HAS_DMA 83 - ---help--- 84 - Driver for the Microchip MCP251x SPI CAN controllers. 85 - 86 80 config CAN_BFIN 87 81 depends on BF534 || BF536 || BF537 || BF538 || BF539 || BF54x 88 82 tristate "Analog Devices Blackfin on-chip CAN" ··· 126 132 source "drivers/net/can/c_can/Kconfig" 127 133 128 134 source "drivers/net/can/cc770/Kconfig" 135 + 136 + source "drivers/net/can/spi/Kconfig" 129 137 130 138 source "drivers/net/can/usb/Kconfig" 131 139
+1 -1
drivers/net/can/Makefile
··· 10 10 11 11 can-dev-$(CONFIG_CAN_LEDS) += led.o 12 12 13 + obj-y += spi/ 13 14 obj-y += usb/ 14 15 obj-y += softing/ 15 16 ··· 20 19 obj-$(CONFIG_CAN_CC770) += cc770/ 21 20 obj-$(CONFIG_CAN_AT91) += at91_can.o 22 21 obj-$(CONFIG_CAN_TI_HECC) += ti_hecc.o 23 - obj-$(CONFIG_CAN_MCP251X) += mcp251x.o 24 22 obj-$(CONFIG_CAN_BFIN) += bfin_can.o 25 23 obj-$(CONFIG_CAN_JANZ_ICAN3) += janz-ican3.o 26 24 obj-$(CONFIG_CAN_FLEXCAN) += flexcan.o
drivers/net/can/mcp251x.c drivers/net/can/spi/mcp251x.c
+10
drivers/net/can/spi/Kconfig
··· 1 + menu "CAN SPI interfaces" 2 + depends on SPI 3 + 4 + config CAN_MCP251X 5 + tristate "Microchip MCP251x SPI CAN controllers" 6 + depends on HAS_DMA 7 + ---help--- 8 + Driver for the Microchip MCP251x SPI CAN controllers. 9 + 10 + endmenu
+8
drivers/net/can/spi/Makefile
··· 1 + # 2 + # Makefile for the Linux Controller Area Network SPI drivers. 3 + # 4 + 5 + 6 + obj-$(CONFIG_CAN_MCP251X) += mcp251x.o 7 + 8 + ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG