default or selected kernelversion does not have config value CONFIG_MTD_NAND_IDS.
Result is shown for kernelversion 6.5.1

CONFIG_MTD_NAND_IDS (not configurable)

modulename: nand_ids.ko

configname: CONFIG_MTD_NAND_IDS

Linux Kernel Configuration
└─>Device Drivers
└─>Memory Technology Device (MTD) support
└─>NAND Device Support
└─>MTD_NAND_IDS
In linux kernel since version 2.6.20 (release Date: 2007-02-04)  
source code:

is depended by
CONFIG_MTD_NAND