9
0
Fork 0

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:
Sascha Hauer 2012-04-23 13:02:19 +02:00
parent 51f2ded17c
commit 2893952c28
1 changed files with 1 additions and 1 deletions

View File

@ -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;