usb: typec: Add typec_find_orientation()
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 7 May 2020 15:08:57 +0000 (18:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 12:20:49 +0000 (14:20 +0200)
commit8c49c9ee4a91c158d28c583862718b348881cb16
tree6b8080f1a112cff6d558788867b0b4b4800a6176
parent3e63cff384e625f09758ce8f4d01ae3033402b63
usb: typec: Add typec_find_orientation()

Function that converts orientation string into orientation
value.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200507150900.12102-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/class.c
include/linux/usb/typec.h