diff options
author | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2018-06-23 19:01:05 +0000 |
---|---|---|
committer | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2018-06-23 19:01:05 +0000 |
commit | 96308c2a28ffa3ffd580cb1feebe5133cada3643 (patch) | |
tree | 57e4bab4ab3b454792d22c304dc95950b920cfc1 | |
parent | e50f10b5a4c10361c0b63e208de2f85f86feefea (diff) | |
download | src-96308c2a28ffa3ffd580cb1feebe5133cada3643.tar.gz src-96308c2a28ffa3ffd580cb1feebe5133cada3643.zip |
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.
Notes
Notes:
svn path=/head/; revision=335585
-rw-r--r-- | share/man/man9/fdt_pinctrl.9 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man9/fdt_pinctrl.9 b/share/man/man9/fdt_pinctrl.9 index cb6c8708ce69..07626dab213d 100644 --- a/share/man/man9/fdt_pinctrl.9 +++ b/share/man/man9/fdt_pinctrl.9 @@ -116,10 +116,10 @@ foo_configure_pins(device_t dev, phandle_t cfgxref) cfgnode = OF_node_from_xref(cfgxref); pins = NULL; - npins = OF_getencprop_alloc(cfgnode, "foo,pins", sizeof(*pins), + npins = OF_getencprop_alloc_multi(cfgnode, "foo,pins", sizeof(*pins), (void **)&pins); functions = NULL; - nfunctions = OF_getencprop_alloc(cfgnode, "foo,functions", + nfunctions = OF_getencprop_alloc_multi(cfgnode, "foo,functions", sizeof(*functions), (void **)&functions); ... } |