nvdimm: make CONFIG_NVDIMM_DAX 'bool'
[cascardo/linux.git] / drivers / dax / Kconfig
index cedab75..3e2ab3b 100644 (file)
@@ -14,7 +14,7 @@ if DEV_DAX
 
 config DEV_DAX_PMEM
        tristate "PMEM DAX: direct access to persistent memory"
-       depends on NVDIMM_DAX
+       depends on LIBNVDIMM && NVDIMM_DAX
        default DEV_DAX
        help
          Support raw access to persistent memory.  Note that this
@@ -23,4 +23,9 @@ config DEV_DAX_PMEM
 
          Say Y if unsure
 
+config NR_DEV_DAX
+       int "Maximum number of Device-DAX instances"
+       default 32768
+       range 256 2147483647
+
 endif