From c19c0da71caaeb2dc6f53e7d53d9ebad24e46c09 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Fri, 30 May 2014 11:07:27 +0200 Subject: drvlist: factor the driver list out of 'devinfo' The command 'devinfo' was first spitting out all devices, and then also all drivers. This patch separates them into two commands, 'devinfo' as before, and also the new command 'drvinfo' Signed-off-by: Holger Schurig Signed-off-by: Sascha Hauer --- commands/devinfo.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'commands/devinfo.c') diff --git a/commands/devinfo.c b/commands/devinfo.c index c229984c5e..71c9bd4b97 100644 --- a/commands/devinfo.c +++ b/commands/devinfo.c @@ -54,7 +54,6 @@ static int do_devinfo_subtree(struct device_d *dev, int depth) static int do_devinfo(int argc, char *argv[]) { struct device_d *dev; - struct driver_d *drv; struct param_d *param; int i; struct resource *res; @@ -66,10 +65,6 @@ static int do_devinfo(int argc, char *argv[]) if (!dev->parent) do_devinfo_subtree(dev, 0); } - - printf("\ndrivers:\n"); - for_each_driver(drv) - printf("%s\n",drv->name); } else { dev = get_device_by_name(argv[1]); @@ -148,7 +143,7 @@ Example from an MPC5200 based system: BAREBOX_CMD_HELP_START(devinfo) BAREBOX_CMD_HELP_TEXT("If called without arguments, devinfo shows a summary of the known") -BAREBOX_CMD_HELP_TEXT("devices and drivers.") +BAREBOX_CMD_HELP_TEXT("devices.") BAREBOX_CMD_HELP_TEXT("") BAREBOX_CMD_HELP_TEXT("If called with a device path being the argument, devinfo shows more") BAREBOX_CMD_HELP_TEXT("default information about this device and its parameters.") @@ -157,7 +152,7 @@ BAREBOX_CMD_HELP_END BAREBOX_CMD_START(devinfo) .cmd = do_devinfo, - BAREBOX_CMD_DESC("show information about devices and drivers") + BAREBOX_CMD_DESC("show information about devices") BAREBOX_CMD_OPTS("[DEVICE]") BAREBOX_CMD_GROUP(CMD_GRP_INFO) BAREBOX_CMD_HELP(cmd_devinfo_help) -- cgit v1.2.3