From 71b3c66af9323457c69123b41fc24352ffb8906c Mon Sep 17 00:00:00 2001 From: Stephan Maka Date: Mon, 26 Aug 2019 23:25:29 +0200 Subject: [PATCH] firmware: conditionally compile has_si5324 avoids unused warnings where this module is not used. --- artiq/firmware/libboard_artiq/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/artiq/firmware/libboard_artiq/lib.rs b/artiq/firmware/libboard_artiq/lib.rs index 300eed3a6..697afed3b 100644 --- a/artiq/firmware/libboard_artiq/lib.rs +++ b/artiq/firmware/libboard_artiq/lib.rs @@ -25,10 +25,7 @@ pub mod mailbox; #[cfg(has_kernel_cpu)] pub mod rpc_queue; -#[cfg(any(soc_platform = "kasli", - soc_platform = "sayma_amc", - soc_platform = "sayma_rtm", - soc_platform = "kc705"))] +#[cfg(any(soc_platform = "kasli", has_si5324))] mod pca9548; #[cfg(has_si5324)] pub mod si5324;