mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
can: Kconfig: convert 'depends on CAN' into 'if CAN...endif' block
This patch adds an 'if CAN...endif' Block around all CAN symbols in net/can/Kconfig. So the 'depends on CAN' dependencies can be removed. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
93b9c1ddd3
commit
77136836ae
@ -1,9 +1,7 @@
|
|||||||
menu "CAN Device Drivers"
|
menu "CAN Device Drivers"
|
||||||
depends on CAN
|
|
||||||
|
|
||||||
config CAN_VCAN
|
config CAN_VCAN
|
||||||
tristate "Virtual Local CAN Interface (vcan)"
|
tristate "Virtual Local CAN Interface (vcan)"
|
||||||
depends on CAN
|
|
||||||
---help---
|
---help---
|
||||||
Similar to the network loopback devices, vcan offers a
|
Similar to the network loopback devices, vcan offers a
|
||||||
virtual local CAN interface.
|
virtual local CAN interface.
|
||||||
@ -13,7 +11,6 @@ config CAN_VCAN
|
|||||||
|
|
||||||
config CAN_SLCAN
|
config CAN_SLCAN
|
||||||
tristate "Serial / USB serial CAN Adaptors (slcan)"
|
tristate "Serial / USB serial CAN Adaptors (slcan)"
|
||||||
depends on CAN
|
|
||||||
---help---
|
---help---
|
||||||
CAN driver for several 'low cost' CAN interfaces that are attached
|
CAN driver for several 'low cost' CAN interfaces that are attached
|
||||||
via serial lines or via USB-to-serial adapters using the LAWICEL
|
via serial lines or via USB-to-serial adapters using the LAWICEL
|
||||||
@ -33,7 +30,6 @@ config CAN_SLCAN
|
|||||||
|
|
||||||
config CAN_DEV
|
config CAN_DEV
|
||||||
tristate "Platform CAN drivers with Netlink support"
|
tristate "Platform CAN drivers with Netlink support"
|
||||||
depends on CAN
|
|
||||||
default y
|
default y
|
||||||
---help---
|
---help---
|
||||||
Enables the common framework for platform CAN drivers with Netlink
|
Enables the common framework for platform CAN drivers with Netlink
|
||||||
@ -133,7 +129,6 @@ source "drivers/net/can/softing/Kconfig"
|
|||||||
|
|
||||||
config CAN_DEBUG_DEVICES
|
config CAN_DEBUG_DEVICES
|
||||||
bool "CAN devices debugging messages"
|
bool "CAN devices debugging messages"
|
||||||
depends on CAN
|
|
||||||
---help---
|
---help---
|
||||||
Say Y here if you want the CAN device drivers to produce a bunch of
|
Say Y here if you want the CAN device drivers to produce a bunch of
|
||||||
debug messages to the system log. Select this if you are having
|
debug messages to the system log. Select this if you are having
|
||||||
|
@ -16,9 +16,10 @@ menuconfig CAN
|
|||||||
If you want CAN support you should say Y here and also to the
|
If you want CAN support you should say Y here and also to the
|
||||||
specific driver for your controller(s) below.
|
specific driver for your controller(s) below.
|
||||||
|
|
||||||
|
if CAN
|
||||||
|
|
||||||
config CAN_RAW
|
config CAN_RAW
|
||||||
tristate "Raw CAN Protocol (raw access with CAN-ID filtering)"
|
tristate "Raw CAN Protocol (raw access with CAN-ID filtering)"
|
||||||
depends on CAN
|
|
||||||
default N
|
default N
|
||||||
---help---
|
---help---
|
||||||
The raw CAN protocol option offers access to the CAN bus via
|
The raw CAN protocol option offers access to the CAN bus via
|
||||||
@ -29,7 +30,6 @@ config CAN_RAW
|
|||||||
|
|
||||||
config CAN_BCM
|
config CAN_BCM
|
||||||
tristate "Broadcast Manager CAN Protocol (with content filtering)"
|
tristate "Broadcast Manager CAN Protocol (with content filtering)"
|
||||||
depends on CAN
|
|
||||||
default N
|
default N
|
||||||
---help---
|
---help---
|
||||||
The Broadcast Manager offers content filtering, timeout monitoring,
|
The Broadcast Manager offers content filtering, timeout monitoring,
|
||||||
@ -42,7 +42,6 @@ config CAN_BCM
|
|||||||
|
|
||||||
config CAN_GW
|
config CAN_GW
|
||||||
tristate "CAN Gateway/Router (with netlink configuration)"
|
tristate "CAN Gateway/Router (with netlink configuration)"
|
||||||
depends on CAN
|
|
||||||
default N
|
default N
|
||||||
---help---
|
---help---
|
||||||
The CAN Gateway/Router is used to route (and modify) CAN frames.
|
The CAN Gateway/Router is used to route (and modify) CAN frames.
|
||||||
@ -53,3 +52,5 @@ config CAN_GW
|
|||||||
by the netlink configuration interface known e.g. from iptables.
|
by the netlink configuration interface known e.g. from iptables.
|
||||||
|
|
||||||
source "drivers/net/can/Kconfig"
|
source "drivers/net/can/Kconfig"
|
||||||
|
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user