summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-11-23 20:37:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-01 12:33:33 +0100
commit3edbc17f1ab1a13b6ddd7fcb4dee596ab41ae0b1 (patch)
tree6e4fee43736e5351e8d2c3625636c6b86eb10681 /include/driver.h
parentf754335eb9b18a6c79098562246e1a0afe56529f (diff)
downloadbarebox-3edbc17f1ab1a13b6ddd7fcb4dee596ab41ae0b1.tar.gz
barebox-3edbc17f1ab1a13b6ddd7fcb4dee596ab41ae0b1.tar.xz
driver: Add device_detect_all() function
Add a device_detect_all function to detect all devices and use it in the detect command. This makes the functionality reusable in other code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index 8617872053..e571fbbec5 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -134,6 +134,7 @@ int device_probe(struct device_d *dev);
/* detect devices attached to this device (cards, disks,...) */
int device_detect(struct device_d *dev);
int device_detect_by_name(const char *devname);
+void device_detect_all(void);
/* Unregister a device. This function can fail, e.g. when the device
* has children.