From 3edbc17f1ab1a13b6ddd7fcb4dee596ab41ae0b1 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 23 Nov 2017 20:37:47 +0100 Subject: 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 --- commands/detect.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'commands') 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; } -- cgit v1.2.3