diff --git a/esphome/components/spi/spi.h b/esphome/components/spi/spi.h
index f284768755..26323e1f22 100644
--- a/esphome/components/spi/spi.h
+++ b/esphome/components/spi/spi.h
@@ -27,8 +27,8 @@ using SPIInterface = spi_host_device_t;
 
 #endif  // USE_ESP_IDF
 
-#ifndef USE_SPI
-// supprse clang-tidy on platform that do not support SPI
+#ifdef USE_ZEPHYR
+// supprse clang-tidy
 using SPIInterface = void *;
 #endif