freebsd-nq/sys/arm/freescale/vybrid
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
..
files.vybrid Revert r327250 as it broke the build for some armv6 kernel and all armv4/5 2017-12-28 07:31:14 +00:00
std.vybrid Make kernel option KERNVIRTADDR optional, remove it from std.<platform> 2017-12-30 00:20:49 +00:00
vf_adc.c
vf_adc.h
vf_anadig.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_ccm.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
vf_common.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_dcu4.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_dmamux.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_dmamux.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_edma.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_edma.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_ehci.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_gpio.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_i2c.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_iomuxc.c Switch users of fdt_is_enabled to use ofw_bus_node_status_okay. These are 2018-04-03 11:01:50 +00:00
vf_iomuxc.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_machdep.c [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
vf_mscm.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_nfc.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_port.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_port.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_sai.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_spi.c
vf_src.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_src.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_tcon.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
vf_uart.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00