drivers: can: transceiver: Update drivers to use dts Kconfig symbol

Update the GPIO-controlled CAN transceiver driver to use the
DT_HAS_CAN_TRANSCEIVER_GPIO_ENABLED Kconfig symbol to expose the driver and
enable it by default based on devicetree.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2022-09-08 12:25:33 +02:00 committed by Fabio Baltieri
commit b01ea7c0c9

View file

@ -13,8 +13,9 @@ config CAN_TRANSCEIVER_INIT_PRIORITY
config CAN_TRANSCEIVER_GPIO
bool "GPIO controlled CAN transceiver"
default y
depends on DT_HAS_CAN_TRANSCEIVER_GPIO_ENABLED
depends on GPIO
default $(dt_compat_enabled,can-transceiver-gpio)
help
Enable support for GPIO controlled CAN transceivers.