summaryrefslogtreecommitdiffstats
path: root/commands/devinfo.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-04-06 11:41:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-10 08:49:59 +0200
commitc6d839ea1dd2a926bab5ea179b2b72dc409bc2dd (patch)
treed4dbb85678f7aa32b7c5f8dfe0e51984041833aa /commands/devinfo.c
parenta2badef726c5a216813e4b2ddf04f35076833395 (diff)
downloadbarebox-c6d839ea1dd2a926bab5ea179b2b72dc409bc2dd.tar.gz
parameter: Give device parameters types
This adds a variable type enum and adds this to the device parameters. This information gives the user a hint which values a parameter expects and also helps to organize the parameters better internally. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/devinfo.c')
-rw-r--r--commands/devinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/devinfo.c b/commands/devinfo.c
index 9d5e8b8..cd69d2e 100644
--- a/commands/devinfo.c
+++ b/commands/devinfo.c
@@ -103,7 +103,8 @@ static int do_devinfo(int argc, char *argv[])
printf("Parameters:\n");
first = false;
}
- printf(" %s: %s", param->name, dev_get_param(dev, param->name));
+ printf(" %s: %s (type: %s)", param->name, dev_get_param(dev, param->name),
+ get_param_type(param));
if (param->info) {
param->info(param);
}