lkml.org 
[lkml]   [2022]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 2/4] can: Kconfig: change CAN_DEV into a menuconfig
Date
Currently, only slcan, vcan and vxcan do not depend on CAN_DEV. This
is going to change in the next patch when can_dropped_invalid_skb()
will be moved into skb.c.

In prevision to that, move CAN_DEV one rank up by making it a
menuconfig. The description of CAN_DEV is updated accordingly.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
---
drivers/net/can/Kconfig | 33 +++++++++++++++++++--------------
1 file changed, 19 insertions(+), 14 deletions(-)

diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig
index fff259247d52..9bddccfaa0c5 100644
--- a/drivers/net/can/Kconfig
+++ b/drivers/net/can/Kconfig
@@ -1,5 +1,22 @@
# SPDX-License-Identifier: GPL-2.0-only
-menu "CAN Device Drivers"
+
+menuconfig CAN_DEV
+ tristate "CAN Device Drivers"
+ default y
+ help
+ This section contains all the CAN device drivers including
+ the virtual ones.
+
+ Saying Y here enables the common framework for platform CAN
+ drivers with Netlink support. This is the standard library
+ for CAN drivers.
+
+ To compile as a module, choose M here: the module will be
+ called can_dev.
+
+ If unsure, say Y.
+
+if CAN_DEV

config CAN_VCAN
tristate "Virtual Local CAN Interface (vcan)"
@@ -48,16 +65,6 @@ config CAN_SLCAN
can be changed by the 'maxdev=xx' module option. This driver can
also be built as a module. If so, the module will be called slcan.

-config CAN_DEV
- tristate "Platform CAN drivers with Netlink support"
- default y
- help
- Enables the common framework for platform CAN drivers with Netlink
- support. This is the standard library for CAN drivers.
- If unsure, say Y.
-
-if CAN_DEV
-
config CAN_CALC_BITTIMING
bool "CAN bit-timing calculation"
default y
@@ -180,8 +187,6 @@ source "drivers/net/can/softing/Kconfig"
source "drivers/net/can/spi/Kconfig"
source "drivers/net/can/usb/Kconfig"

-endif
-
config CAN_DEBUG_DEVICES
bool "CAN devices debugging messages"
help
@@ -190,4 +195,4 @@ config CAN_DEBUG_DEVICES
a problem with CAN support and want to see more of what is going
on.

-endmenu
+endif
--
2.35.1
\
 
 \ /
  Last update: 2022-05-14 16:18    [W:0.689 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site