devinfo: use accessor function for parameters
Instead of directly accessing the struct member of struct param_d use the provided getter function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
51f2ded17c
commit
2893952c28
|
@ -401,7 +401,7 @@ static int do_devinfo(int argc, char *argv[])
|
|||
"no parameters available" : "Parameters:");
|
||||
|
||||
list_for_each_entry(param, &dev->parameters, list)
|
||||
printf("%16s = %s\n", param->name, param->value);
|
||||
printf("%16s = %s\n", param->name, dev_get_param(dev, param->name));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue