File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,13 @@ static int spi_esp32_release(const struct device *dev,
494
494
return 0 ;
495
495
}
496
496
497
+ static int spi_esp32_apply_default_pin_state (const struct device * dev )
498
+ {
499
+ const struct spi_esp32_config * cfg = dev -> config ;
500
+
501
+ return pinctrl_apply_state (cfg -> pcfg , PINCTRL_STATE_DEFAULT );
502
+ }
503
+
497
504
static const struct spi_driver_api spi_api = {
498
505
.transceive = spi_esp32_transceive ,
499
506
#ifdef CONFIG_SPI_ASYNC
@@ -502,7 +509,8 @@ static const struct spi_driver_api spi_api = {
502
509
#ifdef CONFIG_SPI_RTIO
503
510
.iodev_submit = spi_rtio_iodev_default_submit ,
504
511
#endif
505
- .release = spi_esp32_release
512
+ .release = spi_esp32_release ,
513
+ .apply_default_pin_state = spi_esp32_apply_default_pin_state ,
506
514
};
507
515
508
516
#ifdef CONFIG_SOC_SERIES_ESP32
You can’t perform that action at this time.
0 commit comments