[PATCH 2/3] devinfo: use accessor function for parameters
Sascha Hauer
s.hauer at pengutronix.de
Tue Apr 24 05:21:18 EDT 2012
Instead of directly accessing the struct member of struct param_d
use the provided getter function.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/base/driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 2d206f9..9924fee 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -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;
--
1.7.10
More information about the barebox
mailing list