mtdconfig: change the relevant judgments of mtd_config

For the MTD_CONFIG configuration item in
drivers/mtd/Kconfig has changed.

Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
zhaoxingyu1
2026-01-20 01:05:42 +08:00
committed by Donny(董九柱)
parent 0e1dd46f3b
commit e62ba0adc5
6 changed files with 6 additions and 6 deletions
@@ -147,7 +147,7 @@ int sam_smartfs_initialize(void)
/* Test if this is the config partition */
#if defined CONFIG_MTD_CONFIG
#ifndef CONFIG_MTD_CONFIG_NONE
if (partno == 0)
{
/* Register the partition as the config device */
@@ -68,7 +68,7 @@ ifeq ($(CONFIG_SAMV7_MCAN),y)
CSRCS += sam_mcan.c
endif
ifeq ($(CONFIG_MTD_CONFIG),y)
ifneq ($(CONFIG_MTD_CONFIG_NONE),y)
ifeq ($(CONFIG_SAMV7_TWIHS0),y)
ifeq ($(CONFIG_MTD_AT24XX),y)
CSRCS += sam_at24config.c
@@ -151,7 +151,7 @@
# undef HAVE_MACADDR
#endif
#if !defined(CONFIG_MTD_CONFIG)
#if defined(CONFIG_MTD_CONFIG_NONE)
# undef HAVE_MTDCONFIG
#endif
+1 -1
View File
@@ -80,7 +80,7 @@ ifeq ($(CONFIG_AUDIO_NULL),y)
CSRCS += sam_audio_null.c
endif
ifeq ($(CONFIG_MTD_CONFIG),y)
ifneq ($(CONFIG_MTD_CONFIG_NONE),y)
ifeq ($(CONFIG_SAMV7_TWIHS0),y)
ifeq ($(CONFIG_MTD_AT24XX),y)
CSRCS += sam_at24config.c
@@ -159,7 +159,7 @@
# undef HAVE_MACADDR
#endif
#if !defined(CONFIG_MTD_CONFIG)
#if defined(CONFIG_MTD_CONFIG_NONE)
# undef HAVE_MTDCONFIG
#endif
@@ -330,7 +330,7 @@ int stm32wl5_flash_init(void)
}
#endif
#if defined(CONFIG_MTD_CONFIG)
#if !defined(CONFIG_MTD_CONFIG_NONE)
else if (strcmp(fs, "mtdconfig") == 0)
{
if (mtdconfig_minor)