Skip to content

Commit bdc4094

Browse files
author
Enric Balletbo i Serra
committed
platform/chrome: cros_ec_typec: Add a dependency on USB_ROLE_SWITCH
As reported by the kernel test robot the cros_ec_typec driver fails to build if the USB_ROLE_SWITCH is not selected, to fix that, add a dependency on that symbol. This fixes the following build error: drivers/platform/chrome/cros_ec_typec.c:133: undefined reference to `usb_role_switch_put' ld: drivers/platform/chrome/cros_ec_typec.o: in function `cros_typec_get_switch_handles': drivers/platform/chrome/cros_ec_typec.c:108: undefined reference to `fwnode_usb_role_switch_get' ld: drivers/platform/chrome/cros_ec_typec.c:117: undefined reference to `usb_role_switch_put' Fixes: 7e7def1 ("platform/chrome: cros_ec_typec: Add USB mux control") Reported-by: kernel test robot <[email protected]> Acked-by: Prashant Malani <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]>
1 parent aaa3cbb commit bdc4094

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/chrome/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ config CROS_EC_TYPEC
218218
tristate "ChromeOS EC Type-C Connector Control"
219219
depends on MFD_CROS_EC_DEV && TYPEC
220220
depends on CROS_USBPD_NOTIFY
221+
depends on USB_ROLE_SWITCH
221222
default MFD_CROS_EC_DEV
222223
help
223224
If you say Y here, you get support for accessing Type C connector

0 commit comments

Comments
 (0)