diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-30 08:48:38 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-11-09 23:04:01 +0100 |
commit | a54dfb195a701f85a44c0a6f2c3a695a6fdf004a (patch) | |
tree | 3dcfe379f5cd55e79f42e546cbc26b1640f81303 /include | |
parent | cf348c5510bb07f213f7b725b26e7fc0c79dc36e (diff) | |
download | barebox-a54dfb195a701f85a44c0a6f2c3a695a6fdf004a.tar.gz barebox-a54dfb195a701f85a44c0a6f2c3a695a6fdf004a.tar.xz |
mtd: rename master to parent
In Linux mtd->parent is what in barebox is mtd->master. Rename this
to get closer to the Linux mtd layer.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/mtd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index e4ce2ae233..75407a9790 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -205,7 +205,13 @@ struct mtd_info { bool allow_erasebad; int p_allow_erasebad; - struct mtd_info *master; + /* + * Parent device from the MTD partition point of view. + * + * MTD masters do not have any parent, MTD partitions do. The parent + * MTD device can itself be a partition. + */ + struct mtd_info *parent; loff_t master_offset; struct list_head partitions; |