From 8794e7d8160d79b566149b9673ff31e140a96882 Mon Sep 17 00:00:00 2001
From: Tomasz Duda <tomaszduda23@gmail.com>
Date: Tue, 13 Aug 2024 17:36:27 +0200
Subject: [PATCH] change macro

---
 esphome/components/spi/spi.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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