1 From 65f3ff9672ccd5ee78937047e7a2fc696eee1c8f Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Thu, 13 Jul 2023 04:07:16 +0100
4 Subject: [PATCH 10/15] block: add new genhd flag GENHD_FL_NVMEM
6 Add new flag to destinguish block devices which may act as an NVMEM
9 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
11 include/linux/blkdev.h | 2 ++
12 1 file changed, 2 insertions(+)
14 --- a/include/linux/blkdev.h
15 +++ b/include/linux/blkdev.h
16 @@ -80,11 +80,13 @@ struct partition_meta_info {
17 * ``GENHD_FL_NO_PART``: partition support is disabled. The kernel will not
18 * scan for partitions from add_disk, and users can't add partitions manually.
20 + * ``GENHD_FL_NVMEM``: the block device should be considered as NVMEM provider.
23 GENHD_FL_REMOVABLE = 1 << 0,
24 GENHD_FL_HIDDEN = 1 << 1,
25 GENHD_FL_NO_PART = 1 << 2,
26 + GENHD_FL_NVMEM = 1 << 3,