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:
parent
4b90e788f6
commit
b01ea7c0c9
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue