freebsd-skq/sys/arm
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
..
allwinner Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
altera/socfpga dwmmc: Fully subclass driver 2017-12-30 22:01:17 +00:00
amlogic/aml8726 Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
annapurna/alpine [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
arm Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
at91 This is MPSAFE on this platform, so don't take Giant out while running 2018-03-21 14:47:08 +00:00
broadcom/bcm2835 Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
cavium/cns11xx Use the TSLOG framework to record entry/exit timestamps for DELAY and 2017-12-31 09:24:41 +00:00
cloudabi32 Correct some more places where TO_PTR() should be used. 2017-11-26 14:53:56 +00:00
conf [rpi] Add fdt_pinctrl(4) support to Raspberry Pi GPIO driver 2018-04-08 00:56:19 +00:00
freescale Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
include Enable ArmadaXP using INTRNG interrupt controller 2018-04-03 21:17:19 +00:00
mv Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
nvidia Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
qemu Revert r327250 as it broke the build for some armv6 kernel and all armv4/5 2017-12-28 07:31:14 +00:00
ralink Use the TSLOG framework to record entry/exit timestamps for DELAY and 2017-12-31 09:24:41 +00:00
rockchip dwmmc: Fully subclass driver 2017-12-30 22:01:17 +00:00
samsung/exynos [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
ti Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
versatile Revert r327250 as it broke the build for some armv6 kernel and all armv4/5 2017-12-28 07:31:14 +00:00
xilinx Fix accidental USB port resets by GPIO on Zynq/Zedboard boards 2018-04-03 04:31:54 +00:00
xscale Revert r327828, r327949, r327953, r328016-r328026, r328041: 2018-01-21 15:42:36 +00:00