diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-02-18 12:54:05 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-21 15:27:15 +0000 |
commit | 4998aaee230f2069699d45200ffdcdb934521c4a (patch) | |
tree | 1fced1b2aba6ccef9331b9c343d6b951721bb2ac /src | |
parent | b55ac09ce34fe407923a14cc768f8c69918c42b2 (diff) | |
download | coreboot-4998aaee230f2069699d45200ffdcdb934521c4a.tar.gz coreboot-4998aaee230f2069699d45200ffdcdb934521c4a.tar.bz2 coreboot-4998aaee230f2069699d45200ffdcdb934521c4a.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/ec/google/chromeec/ec_acpi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ec/google/chromeec/ec_acpi.c b/src/ec/google/chromeec/ec_acpi.c index 0244fd15e8f9..3d781287ee59 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, |