diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-10 08:49:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-15 11:16:14 +0200 |
commit | 0ee203186d1adf98a04484ee9e601ca9714f0497 (patch) | |
tree | b1824fd716dfbc4ce8143ed156c772efcf873d4b /include/driver.h | |
parent | 2672c906a4b83cd2aef1ddc0b9d2ec54b89eba3d (diff) | |
download | barebox-0ee203186d1adf98a04484ee9e601ca9714f0497.tar.gz barebox-0ee203186d1adf98a04484ee9e601ca9714f0497.tar.xz |
cdev: add device_find_partition
device_find_partition allows to find a partition of a device with
a particular name.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r-- | include/driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h index 7ac2eef845..f95c93cca4 100644 --- a/include/driver.h +++ b/include/driver.h @@ -458,6 +458,7 @@ struct cdev { int devfs_create(struct cdev *); int devfs_remove(struct cdev *); int cdev_find_free_index(const char *); +struct cdev *device_find_partition(struct device_d *dev, const char *name); struct cdev *cdev_by_name(const char *filename); struct cdev *cdev_open(const char *name, unsigned long flags); int cdev_do_open(struct cdev *, unsigned long flags); |