diff options
author | Holger Schurig <holgerschurig@gmail.com> | 2014-05-30 11:07:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-02 09:06:45 +0200 |
commit | c19c0da71caaeb2dc6f53e7d53d9ebad24e46c09 (patch) | |
tree | 98d246535fea8aecddf511b732af485a2733234e /commands/devinfo.c | |
parent | 4d1ebec9dac6b8b6b10fc1b3ce1a899df1fca1a1 (diff) | |
download | barebox-c19c0da71caaeb2dc6f53e7d53d9ebad24e46c09.tar.gz barebox-c19c0da71caaeb2dc6f53e7d53d9ebad24e46c09.tar.xz |
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 <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/devinfo.c')
-rw-r--r-- | commands/devinfo.c | 9 |
1 files changed, 2 insertions, 7 deletions
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) |