platform/chrome: cros_ec_typec: Add role swap ops
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Fri, 11 Jul 2025 00:35:01 +0000 (00:35 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Fri, 11 Jul 2025 03:13:08 +0000 (03:13 +0000)
commitab229c2b72c35739e8ffb70af11190ff40f38701
treeb610fee970ab80b4a2df5c9b21ad7bc2e929122e
parent5af89b6309417bdc2ff6835509d33a172c4a3218
platform/chrome: cros_ec_typec: Add role swap ops

Add the pr_set and dr_set typec_operations to registered typec ports.
This enables sysfs to control power and data role when the port is
capable of doing so.

Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Co-developed-by: Radu Vele <raduvele@google.com>
Signed-off-by: Radu Vele <raduvele@google.com>
Link: https://lore.kernel.org/r/20250711003502.857536-1-raduvele@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_typec.c