mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
mtd/progmem: Let MTD_PROGMEM depend on ARCH_HAVE_PROGMEM
and remove the reference of CONFIG_ARCH_HAVE_PROGMEM from code Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I89a73f138d54718ee8bc9345958675d7a2a34ba8
This commit is contained in:
committed by
David Sidrane
parent
f9d20ea4d2
commit
0aa78ccc81
@@ -130,6 +130,7 @@ endif # MTD_READAHEAD
|
|||||||
config MTD_PROGMEM
|
config MTD_PROGMEM
|
||||||
bool "Enable on-chip program FLASH MTD device"
|
bool "Enable on-chip program FLASH MTD device"
|
||||||
default n
|
default n
|
||||||
|
depends on ARCH_HAVE_PROGMEM
|
||||||
---help---
|
---help---
|
||||||
Enable to support an MTD device that supports the on-chip FLASH
|
Enable to support an MTD device that supports the on-chip FLASH
|
||||||
using the interfaces defined in include/nuttx/progmem. Those
|
using the interfaces defined in include/nuttx/progmem. Those
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
#include <nuttx/fs/ioctl.h>
|
#include <nuttx/fs/ioctl.h>
|
||||||
#include <nuttx/mtd/mtd.h>
|
#include <nuttx/mtd/mtd.h>
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_HAVE_PROGMEM
|
#ifdef CONFIG_MTD_PROGMEM
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Types
|
* Private Types
|
||||||
@@ -422,4 +422,4 @@ FAR struct mtd_dev_s *progmem_initialize(void)
|
|||||||
return (FAR struct mtd_dev_s *)priv;
|
return (FAR struct mtd_dev_s *)priv;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_ARCH_HAVE_PROGMEM */
|
#endif /* CONFIG_MTD_PROGMEM */
|
||||||
|
|||||||
Reference in New Issue
Block a user