> Moreover, Kconfig does not (easily/nicely) allow for multiple instances of
> a
> same driver.
>

Having multiple instances of same driver is no different from having
multiple instances of same bus type

menuconfig MCP2515
bool "Microchip MCP2515 CAN Driver Support"
default n

if MCP2515

config MCP2515_1
bool "MCP2515 Device 1"
default n

if MCP2515_1
...
endif # MCP2515_1

config MCP2515_2
bool "MCP2515 Device 2"
default n
depends on MCP2515_1

if MCP2515_2
...
endif # MCP2515_2
endif # MCP2515

Reply via email to