Commit df6ad5dd authored by Vincent Mailhol's avatar Vincent Mailhol Committed by Marc Kleine-Budde

can: Kconfig: rename config symbol CAN_DEV into CAN_NETLINK

In the next patches, the scope of the can-dev module will grow to
engloble the software/virtual drivers (slcan, v(x)can). To this
extent, release CAN_DEV by renaming it into CAN_NETLINK. The config
symbol CAN_DEV will be reused to cover this extended scope.

The rationale for the name CAN_NETLINK is that netlink is the
predominant feature added here.

The current description only mentions platform drivers despite the
fact that this symbol is also required by "normal" devices (e.g. USB
or PCI) which do not fall under the platform devices category. The
description is updated accordingly to fix this gap.

Link: https://lore.kernel.org/all/20220610143009.323579-2-mailhol.vincent@wanadoo.frSigned-off-by: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
Acked-by: default avatarMax Staudt <max@enpas.org>
Tested-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 7e193a42
...@@ -48,15 +48,19 @@ config CAN_SLCAN ...@@ -48,15 +48,19 @@ config CAN_SLCAN
can be changed by the 'maxdev=xx' module option. This driver can 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. also be built as a module. If so, the module will be called slcan.
config CAN_DEV config CAN_NETLINK
tristate "Platform CAN drivers with Netlink support" tristate "CAN device drivers with Netlink support"
default y default y
help help
Enables the common framework for platform CAN drivers with Netlink Enables the common framework for CAN device drivers. This is the
support. This is the standard library for CAN drivers. standard library and provides features for the Netlink interface such
If unsure, say Y. as bittiming validation, support of CAN error states, device restart
and others.
This is required by all platform and hardware CAN drivers. If you
plan to use such devices or if unsure, say Y.
if CAN_DEV if CAN_NETLINK
config CAN_CALC_BITTIMING config CAN_CALC_BITTIMING
bool "CAN bit-timing calculation" bool "CAN bit-timing calculation"
...@@ -164,7 +168,7 @@ source "drivers/net/can/softing/Kconfig" ...@@ -164,7 +168,7 @@ source "drivers/net/can/softing/Kconfig"
source "drivers/net/can/spi/Kconfig" source "drivers/net/can/spi/Kconfig"
source "drivers/net/can/usb/Kconfig" source "drivers/net/can/usb/Kconfig"
endif endif #CAN_NETLINK
config CAN_DEBUG_DEVICES config CAN_DEBUG_DEVICES
bool "CAN devices debugging messages" bool "CAN devices debugging messages"
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_CAN_DEV) += can-dev.o obj-$(CONFIG_CAN_NETLINK) += can-dev.o
can-dev-y += bittiming.o can-dev-y += bittiming.o
can-dev-y += dev.o can-dev-y += dev.o
can-dev-y += length.o can-dev-y += length.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment