usb: typec: tcpm: Refactor logic for new-source-frs-typec-current
authorBadhri Jagan Sridharan <badhri@google.com>
Thu, 29 Oct 2020 06:31:31 +0000 (23:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 11:56:58 +0000 (12:56 +0100)
commit8115240c4fbd1c2705d1369f66168ec77fa2a7e4
treefe1b27cbe87b9fc1ea3a58bb0c4afe2a80119862
parenta0ccdc4a77a1b36b682ae60361879eca0a0f88d6
usb: typec: tcpm: Refactor logic for new-source-frs-typec-current

New source's current capability is now defined as string based
device tree property through new-source-frs-typec-current.
Refactor tcpm code to parse new-source-frs-typec-current and
infer local port's new source current capability during frs.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20201029063138.1429760-4-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c