diff --git a/framework_lib/src/chromium_ec/mod.rs b/framework_lib/src/chromium_ec/mod.rs index 76862c8..45aa0fc 100644 --- a/framework_lib/src/chromium_ec/mod.rs +++ b/framework_lib/src/chromium_ec/mod.rs @@ -27,11 +27,11 @@ pub mod commands; mod cros_ec; pub mod i2c_passthrough; pub mod input_deck; -#[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] +#[cfg(all(not(windows), target_arch = "x86_64"))] mod portio; -#[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] +#[cfg(all(not(windows), target_arch = "x86_64"))] mod portio_hwio; -#[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] +#[cfg(all(not(windows), target_arch = "x86_64"))] mod portio_mec; #[allow(dead_code)] mod protocol; @@ -243,7 +243,7 @@ fn available_drivers() -> Vec { drivers.push(CrosEcDriverType::CrosEc); } - #[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] + #[cfg(all(not(windows), target_arch = "x86_64"))] drivers.push(CrosEcDriverType::Portio); drivers @@ -1897,7 +1897,7 @@ impl CrosEcDriver for CrosEc { // TODO: Change this function to return EcResult instead and print the error only in UI code print_err(match self.driver { - #[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] + #[cfg(all(not(windows), target_arch = "x86_64"))] CrosEcDriverType::Portio => portio::read_memory(offset, length), #[cfg(windows)] CrosEcDriverType::Windows => windows::read_memory(offset, length), @@ -1919,7 +1919,7 @@ impl CrosEcDriver for CrosEc { } match self.driver { - #[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] + #[cfg(all(not(windows), target_arch = "x86_64"))] CrosEcDriverType::Portio => portio::send_command(command, command_version, data), #[cfg(windows)] CrosEcDriverType::Windows => windows::send_command(command, command_version, data),