drivers: can: stm32: Cleanup Kconfig enablement

Follow the pattern we have for other peripherals in that if the driver
class (CAN) is enabled than enable the driver for that class
(CAN_STM32).  Also have the STM32 CAN driver depend on being on a STM32
SoC.

Remove setting of CONFIG_CAN_STM32 in any .conf files as it will get set
of CONFIG_CAN is set/enabled.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-02-24 08:28:17 -06:00 committed by Kumar Gala
commit bb6b1918b2
6 changed files with 8 additions and 7 deletions

View file

@ -8,6 +8,7 @@
config CAN_STM32
bool "STM32 CAN Driver"
depends on SOC_FAMILY_STM32
select USE_STM32_HAL_CAN
help
Enable STM32 CAN Driver (tested on stm32F0 series)