diff options
| author | 2017-02-09 11:50:24 +0100 | |
|---|---|---|
| committer | 2017-02-09 19:19:25 -0800 | |
| commit | 42e9401bd1467d22c4dc4d2c637347b874e6a80b (patch) | |
| tree | 580acad041fd8c108c1ae7396817aa77b0584771 /include/linux/mtd | |
| parent | mtd: bcm47xxpart: support layouts with multiple TRX partitions (diff) | |
| download | linux-dev-42e9401bd1467d22c4dc4d2c637347b874e6a80b.tar.xz linux-dev-42e9401bd1467d22c4dc4d2c637347b874e6a80b.zip | |
mtd: Add partition device node to mtd partition devices
The user visible change here is that mtd partitions get an of_node link
in sysfs.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/partitions.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h index 70736e1e6c8f..06df1e06b6e0 100644 --- a/include/linux/mtd/partitions.h +++ b/include/linux/mtd/partitions.h @@ -41,6 +41,7 @@ struct mtd_partition { uint64_t size; /* partition size */ uint64_t offset; /* offset within the master MTD space */ uint32_t mask_flags; /* master MTD flags to mask out for this partition */ + struct device_node *of_node; }; #define MTDPART_OFS_RETAIN (-3) |
