usb: typec: ucsi: Expose number of alternate modes in partner
authorSaranya Gopal <saranya.gopal@intel.com>
Tue, 16 Nov 2021 10:36:13 +0000 (16:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 13:59:11 +0000 (14:59 +0100)
commit4616dddcfaf75cfbfbff7ce8a468038c697444ce
tree9f1ea17c991aa449c30e5ce0704db377ce97fa45
parent0d8cfeeef3f5a5966abce1903f80308be33280cb
usb: typec: ucsi: Expose number of alternate modes in partner

Type-c class provides an option to expose the number of alternate
modes in the port partner as a sysfs interface. Use that to
expose the number of alternate modes in the port partner from
the ucsi driver.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Rajaram Regupathy <rajaram.regupathy@intel.com>
Signed-off-by: Saranya Gopal <saranya.gopal@intel.com>
Link: https://lore.kernel.org/r/20211116103613.31349-1-saranya.gopal@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c