History

usb: typec: Ensure USB_ROLE_SWITCH is set as a dependency for tps6598x

When I switched on USB role switching for the tps6598x I completely forgot to add the Kconfig dependency. Ensure USB_ROLE_SWITCH is selected to prevent the typs6598x driver being compiled in but the role-switch driver being compiled as a module, leading to link error.

Bryan O'Donoghue committed 6 years ago

Commit e9ccc351 parent d4929201 file · +2 −1Browse files

Unified · Split

drivers/usb/typec/Kconfig+2−1
@@ -64,7 +64,8 @@ config TYPEC_HD3SS3220 · 63 unmodified lines
6464 config TYPEC_TPS6598X
6565 tristate "TI TPS6598x USB Power Delivery controller driver"
6666 depends on I2C
67− select REGMAP_I2C
67+ depends on REGMAP_I2C
68+ depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH
6869 help
6970 Say Y or M here if your system has TI TPS65982 or TPS65983 USB Power
7071 Delivery controller.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t