usb: typec: Add sysfs node to show cc orientation
authorBadhri Jagan Sridharan <badhri@google.com>
Wed, 26 Feb 2020 19:57:58 +0000 (11:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 09:51:21 +0000 (10:51 +0100)
commit75f81a7ffe4d45b97a14f6d8075bacb8323ac10e
tree9251d855a4b5110f6d33ee50e584c3469adba074
parent24e6aea4801bae1dce3b16da6bc64fc06742ac14
usb: typec: Add sysfs node to show cc orientation

Export Type-C orientation information when available.
- "normal": CC1 orientation
- "reverse": CC2 orientation
- "unknown": Orientation cannot be determined.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200226195758.150477-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-class-typec
drivers/usb/typec/class.c
drivers/usb/typec/tcpm/tcpm.c
include/linux/usb/typec.h