Skip to content

Commit

Permalink
drivers: spi: esp32: fix SOC_ESP32 reference
Browse files Browse the repository at this point in the history
ESP32 SoC refactoring added new SOC_SERIES definition,
which was missed by #60183. This fixes it.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
  • Loading branch information
sylvioalves authored and fabiobaltieri committed Aug 3, 2023
1 parent 4b94fc3 commit e544bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_esp32_spim.c
Expand Up @@ -349,7 +349,7 @@ static int IRAM_ATTR spi_esp32_configure(const struct device *dev,
spi_hal_setup_device(hal, hal_dev);

/* Workaround to handle default state of MISO and MOSI lines */
#ifndef CONFIG_SOC_ESP32
#ifndef CONFIG_SOC_SERIES_ESP32
if (cfg->line_idle_low) {
hw->ctrl.d_pol = 0;
hw->ctrl.q_pol = 0;
Expand Down

0 comments on commit e544bdb

Please sign in to comment.