freebsd-dev/sys/powerpc/mpc85xx
Oleksandr Tymoshenko 217d17bcd3 Clean up OF_getprop_alloc API
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
2018-04-08 22:59:34 +00:00
..
atpic.c Add ISA PNP tables to ISA drivers. Fix a few incidental comments. 2018-01-29 00:22:30 +00:00
ds1553_bus_fdt.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ds1553_core.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ds1553_reg.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
fsl_diu.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
fsl_espi.c Add Freescale eSPI driver found on QorIQ SoCs 2017-04-02 01:21:35 +00:00
fsl_sata.c Make fsl_sata driver work on P1022 2018-01-16 04:50:23 +00:00
fsl_sata.h Add Freescale QorIQ SATA controller support. 2017-11-05 02:47:46 +00:00
i2c.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
isa.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
lbc.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
lbc.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mpc85xx_cache.c Only look for L2 cache controllers for mpc85xx_cache 2018-02-04 20:07:08 +00:00
mpc85xx_gpio.c Don't bother checking core version 2017-03-24 01:52:10 +00:00
mpc85xx.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mpc85xx.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
pci_mpc85xx_pcib.c Expand the Freescale PCIe root complex driver with the ofw_pcib_pci 2017-11-14 03:53:15 +00:00
pci_mpc85xx.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
platform_mpc85xx.c Remove platform_cpu_idle() and platform_cpu_idle_wakeup() interfaces 2018-02-24 01:46:56 +00:00
qoriq_gpio.c Switch qoriq_gpio over to using ofw_bus_search_compatible 2017-03-24 01:30:18 +00:00