diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 16:08:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-31 18:43:10 +0200 |
commit | 4031a17fa01902363929c818dcab4aed3881e7ad (patch) | |
tree | 482c565f058529be95bcf0827cdde7d24643f4cd /include | |
parent | 64571bd356218c9e0513dd860f56415b5dd2adae (diff) | |
download | barebox-4031a17fa01902363929c818dcab4aed3881e7ad.tar.gz barebox-4031a17fa01902363929c818dcab4aed3881e7ad.tar.xz |
fs: devfs-core: replace DEVFS_IS_PARTITION flag with pointer to the master cdev
Instead of having a flag indicating a cdev is a partition on
some master cdev, just add a master pointer to the cdev, so
that we can also find out who the master is.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h index b7eaf290c4..2af66fe345 100644 --- a/include/driver.h +++ b/include/driver.h @@ -460,6 +460,7 @@ struct cdev { struct cdev *link; struct list_head link_entry, links; struct list_head partition_entry, partitions; + struct cdev *master; }; int devfs_create(struct cdev *); @@ -482,7 +483,6 @@ int cdev_erase(struct cdev *cdev, loff_t count, loff_t offset); #define DEVFS_PARTITION_FIXED (1U << 0) #define DEVFS_PARTITION_READONLY (1U << 1) -#define DEVFS_IS_PARTITION (1 << 2) #define DEVFS_IS_CHARACTER_DEV (1 << 3) struct cdev *devfs_add_partition(const char *devname, loff_t offset, |