summaryrefslogtreecommitdiffstats
path: root/include/blspec.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-11-01 10:52:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-05 08:37:55 +0100
commit21af7e0005ab6e4be353ade885f0864e48414bc5 (patch)
treebeb60839a5b70e6de8f688dc9a2508d862c3dac2 /include/blspec.h
parentb7a66554dcbc2525b719f7216cb77c2037e6af80 (diff)
downloadbarebox-21af7e0005ab6e4be353ade885f0864e48414bc5.tar.gz
barebox-21af7e0005ab6e4be353ade885f0864e48414bc5.tar.xz
blspec: make cdev optional
the cdev for a given directory can be determined by get_cdev_by_mountpath(). Use this function and remove the cdev argument from blspec_scan_directory(). Also, export the function to make code possible which boots the bootloader spec entries found in directories. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/blspec.h')
-rw-r--r--include/blspec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/blspec.h b/include/blspec.h
index 7b483d312f..66d2e8485d 100644
--- a/include/blspec.h
+++ b/include/blspec.h
@@ -37,6 +37,7 @@ int blspec_scan_devices(struct blspec *blspec);
struct blspec_entry *blspec_entry_default(struct blspec *l);
int blspec_scan_devicename(struct blspec *blspec, const char *devname);
+int blspec_scan_directory(struct blspec *blspec, const char *root);
#define blspec_for_each_entry(blspec, entry) \
list_for_each_entry(entry, &blspec->entries, list)