ramips: add support for ELECOM WMC-S1267GS2
[openwrt/openwrt.git] / target / linux / generic / pending-6.6 / 450-10-block-add-new-genhd-flag-GENHD_FL_NVMEM.patch
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
5
6 Add new flag to destinguish block devices which may act as an NVMEM
7 provider.
8
9 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 ---
11 include/linux/blkdev.h | 2 ++
12 1 file changed, 2 insertions(+)
13
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.
19 *
20 + * ``GENHD_FL_NVMEM``: the block device should be considered as NVMEM provider.
21 */
22 enum {
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,
27 };
28
29 enum {