> Does it make sense to you to define a CONFIG_CAN_USB analogue to
> CONFIG_CAN_SJA1000 ??
> 
> The drivers/net/can/usb/Kconfig could look like this then:
> 
> config CAN_USB
>       bool "CAN USB interfaces"
>       depends on USB && CAN_DEV
>       ---help---
>         Prompt for CAN USB interfaces
> 
> config CAN_EMS_USB
>       tristate "EMS CPC-USB/ARM7 CAN/USB interface"
>       depends on CAN_USB
>       ---help---
>         This driver is for the one channel CPC-USB/ARM7 CAN/USB interface
>         from from EMS Dr. Thomas Wuensche (http://www.ems-wuensche.de).
> 
> Looks really smooth in menuconfig :-)

Sorry for replying myself.

It has to look like this then:

config CAN_USB
        bool "CAN USB interfaces"
        depends on USB && CAN_DEV
        ---help---
          Prompt for CAN USB interfaces

if CAN_USB

config CAN_EMS_USB
        tristate "EMS CPC-USB/ARM7 CAN/USB interface"
        depends on USB && CAN_DEV
        ---help---
          This driver is for the one channel CPC-USB/ARM7 CAN/USB interface
          from from EMS Dr. Thomas Wuensche (http://www.ems-wuensche.de).

endif # CAN_USB

As it allowed CAN_EMS_USB to be 'y' even when CAN_DEV was only 'm' ...

Regards,
Oliver

_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to