usb: typec: ucsi: Add conditional dependency on USB role switch
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 19 Jan 2021 08:34:05 +0000 (11:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 12:30:19 +0000 (13:30 +0100)
commitc00243e7cd5c5c018f8addd6d7c234e2ef16d202
treee17bb274c1812f8798a6aff3d4f7c6e6660d054a
parentd70f7598c4583c6326cbd499b66bc9b3dd821e12
usb: typec: ucsi: Add conditional dependency on USB role switch

Preventing the driver from being built-in when USB Role
Switch Class is being build as module. That fixes a
potential undefined reference error.

Fixes: 89795852c9c4 ("usb: typec: ucsi: Add support for USB role switch")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210119083405.18325-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/Kconfig