From c6d839ea1dd2a926bab5ea179b2b72dc409bc2dd Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 6 Apr 2017 11:41:59 +0200 Subject: 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 --- commands/devinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/devinfo.c') diff --git a/commands/devinfo.c b/commands/devinfo.c index 9d5e8b86eb..cd69d2e5f8 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); } -- cgit v1.2.3