diff mbox series

[v3,4/4] block: add new genhd flag GENHD_FL_NVMEM

Message ID 9ff0ad0e228bf74e2dcb0e40201c2175cd5aef83.1719368448.git.daniel@makrotopia.org
State Superseded
Headers show
Series [v3,1/4] dt-bindings: block: add basic bindings for block devices | expand

Commit Message

Daniel Golle June 26, 2024, 2:51 a.m. UTC
Add new flag to destinguish block devices which may act as an NVMEM
provider.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 include/linux/blkdev.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 8d22ba03e3e1..6c74c69d2ee1 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -81,11 +81,13 @@  struct partition_meta_info {
  * ``GENHD_FL_NO_PART``: partition support is disabled.  The kernel will not
  * scan for partitions from add_disk, and users can't add partitions manually.
  *
+ * ``GENHD_FL_NVMEM``: the block device should be considered as NVMEM provider.
  */
 enum {
 	GENHD_FL_REMOVABLE			= 1 << 0,
 	GENHD_FL_HIDDEN				= 1 << 1,
 	GENHD_FL_NO_PART			= 1 << 2,
+	GENHD_FL_NVMEM				= 1 << 3,
 };
 
 enum {