Skip to content

Commit b7a9312

Browse files
committed
[SFUD] Update rt_sfud_flash_probe_ex API
1 parent 6736626 commit b7a9312

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/drivers/spi/spi_flash_sfud.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const static struct rt_device_ops flash_device_ops =
295295
*
296296
* @return probed SPI flash device, probe failed will return RT_NULL
297297
*/
298-
rt_spi_flash_device_t rt_sfud_flash_probe_ext(const char *spi_flash_dev_name, const char *spi_dev_name,
298+
rt_spi_flash_device_t rt_sfud_flash_probe_ex(const char *spi_flash_dev_name, const char *spi_dev_name,
299299
struct rt_spi_configuration *spi_cfg, struct rt_qspi_configuration *qspi_cfg)
300300
{
301301
rt_spi_flash_device_t rtt_dev = RT_NULL;
@@ -427,11 +427,11 @@ rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const
427427
{
428428
struct rt_spi_configuration cfg = RT_SFUD_DEFAULT_SPI_CFG;
429429
#ifndef SFUD_USING_QSPI
430-
return rt_sfud_flash_probe_ext(spi_flash_dev_name, spi_dev_name, &cfg, RT_NULL);
430+
return rt_sfud_flash_probe_ex(spi_flash_dev_name, spi_dev_name, &cfg, RT_NULL);
431431
#else
432432
struct rt_qspi_configuration qspi_cfg = RT_SFUD_DEFAULT_QSPI_CFG;
433433

434-
return rt_sfud_flash_probe_ext(spi_flash_dev_name, spi_dev_name, &cfg, &qspi_cfg);
434+
return rt_sfud_flash_probe_ex(spi_flash_dev_name, spi_dev_name, &cfg, &qspi_cfg);
435435
#endif
436436
}
437437

components/drivers/spi/spi_flash_sfud.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const
3636
*
3737
* @return probed SPI flash device, probe failed will return RT_NULL
3838
*/
39-
rt_spi_flash_device_t rt_sfud_flash_probe_ext(const char *spi_flash_dev_name, const char *spi_dev_name,
39+
rt_spi_flash_device_t rt_sfud_flash_probe_ex(const char *spi_flash_dev_name, const char *spi_dev_name,
4040
struct rt_spi_configuration *spi_cfg, struct rt_qspi_configuration *qspi_cfg);
4141

4242
/**

0 commit comments

Comments
 (0)