diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-11-23 20:37:47 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-01 12:33:33 +0100 |
commit | 3edbc17f1ab1a13b6ddd7fcb4dee596ab41ae0b1 (patch) | |
tree | 6e4fee43736e5351e8d2c3625636c6b86eb10681 /commands | |
parent | f754335eb9b18a6c79098562246e1a0afe56529f (diff) | |
download | barebox-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 'commands')
-rw-r--r-- | commands/detect.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/detect.c b/commands/detect.c index d68d738453..48bab4d020 100644 --- a/commands/detect.c +++ b/commands/detect.c @@ -54,9 +54,7 @@ static int do_detect(int argc, char *argv[]) } if (option_all) { - for_each_device(dev) - device_detect(dev); - + device_detect_all(); return 0; } |