svn commit: r335585 - head/share/man/man9

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sat Jun 23 19:01:06 UTC 2018


Author: gonzo
Date: Sat Jun 23 19:01:05 2018
New Revision: 335585
URL: https://svnweb.freebsd.org/changeset/base/335585

Log:
  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.

Modified:
  head/share/man/man9/fdt_pinctrl.9

Modified: head/share/man/man9/fdt_pinctrl.9
==============================================================================
--- head/share/man/man9/fdt_pinctrl.9	Sat Jun 23 18:20:17 2018	(r335584)
+++ head/share/man/man9/fdt_pinctrl.9	Sat Jun 23 19:01:05 2018	(r335585)
@@ -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);
 	...
 }


More information about the svn-src-head mailing list