ec/google/chromeec/ec_acpi.c: Cast compatible enum types

Clang complains about this.

Change-Id: If7af9d5a81c1c381490c9634e3da68ff7f5edda8
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62174
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Arthur Heymans 2022-02-18 12:54:05 +01:00 committed by Felix Held
parent b55ac09ce3
commit 4998aaee23
1 changed files with 4 additions and 3 deletions

View File

@ -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,