Fix invalid OF_getencprop_alloc usage in fdt_pinctrl(9)
r332341 introduced OF_getencprop_alloc_multi that should be used instead of OF_getencprop_alloc to get multi-cell properties. Fix example to reflect this change.
This commit is contained in:
parent
e50f10b5a4
commit
96308c2a28
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335585
@ -116,10 +116,10 @@ foo_configure_pins(device_t dev, phandle_t cfgxref)
|
|||||||
|
|
||||||
cfgnode = OF_node_from_xref(cfgxref);
|
cfgnode = OF_node_from_xref(cfgxref);
|
||||||
pins = NULL;
|
pins = NULL;
|
||||||
npins = OF_getencprop_alloc(cfgnode, "foo,pins", sizeof(*pins),
|
npins = OF_getencprop_alloc_multi(cfgnode, "foo,pins", sizeof(*pins),
|
||||||
(void **)&pins);
|
(void **)&pins);
|
||||||
functions = NULL;
|
functions = NULL;
|
||||||
nfunctions = OF_getencprop_alloc(cfgnode, "foo,functions",
|
nfunctions = OF_getencprop_alloc_multi(cfgnode, "foo,functions",
|
||||||
sizeof(*functions), (void **)&functions);
|
sizeof(*functions), (void **)&functions);
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user