1252c9346c
OF_getprop_alloc takes element size argument and returns number of elements in the property. There are valid use cases for such behavior but mostly API consumers pass 1 as element size to get string properties. What API users would expect from OF_getprop_alloc is to be a combination of malloc + OF_getprop with the same semantic of return value. This patch modifies API signature to match these expectations. For the valid use cases with element size != 1 and to reduce modification scope new OF_getprop_alloc_multi function has been introduced that behaves the same way OF_getprop_alloc behaved prior to this patch. Reviewed by: ian, manu Differential Revision: https://reviews.freebsd.org/D14850 |
||
---|---|---|
.. | ||
atpic.c | ||
ds1553_bus_fdt.c | ||
ds1553_core.c | ||
ds1553_reg.h | ||
fsl_diu.c | ||
fsl_espi.c | ||
fsl_sata.c | ||
fsl_sata.h | ||
i2c.c | ||
isa.c | ||
lbc.c | ||
lbc.h | ||
mpc85xx_cache.c | ||
mpc85xx_gpio.c | ||
mpc85xx.c | ||
mpc85xx.h | ||
pci_mpc85xx_pcib.c | ||
pci_mpc85xx.c | ||
platform_mpc85xx.c | ||
qoriq_gpio.c |