From 4998aaee230f2069699d45200ffdcdb934521c4a Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 18 Feb 2022 12:54:05 +0100 Subject: ec/google/chromeec/ec_acpi.c: Cast compatible enum types Clang complains about this. Change-Id: If7af9d5a81c1c381490c9634e3da68ff7f5edda8 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/62174 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/ec/google/chromeec/ec_acpi.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ec/google/chromeec') diff --git a/src/ec/google/chromeec/ec_acpi.c b/src/ec/google/chromeec/ec_acpi.c index 0244fd15e8..3d781287ee 100644 --- a/src/ec/google/chromeec/ec_acpi.c +++ b/src/ec/google/chromeec/ec_acpi.c @@ -185,9 +185,10 @@ static void fill_ssdt_typec_device(const struct device *dev) get_pld_from_usb_ports(&pld, usb2_port, usb3_port, usb4_port); struct typec_connector_class_config typec_config = { - .power_role = port_caps.power_role_cap, - .try_power_role = port_caps.try_power_role_cap, - .data_role = port_caps.data_role_cap, + .power_role = (enum usb_typec_power_role)port_caps.power_role_cap, + .try_power_role = + (enum usb_typec_try_power_role)port_caps.try_power_role_cap, + .data_role = (enum usb_typec_data_role)port_caps.data_role_cap, .usb2_port = usb2_port, .usb3_port = usb3_port, .usb4_port = usb4_port, -- cgit v1.2.3