freebsd-dev/sys/dev/fdt
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
..
fdt_arm_platform.c Make the default FDT implementation of platform_mp_setmaxid use the cpu 2017-03-17 12:45:53 +00:00
fdt_clock_if.m
fdt_clock.c
fdt_clock.h
fdt_common.c Replace calls to fdt_is_compatible with ofw_bus_node_is_compatible. These 2018-04-08 22:07:06 +00:00
fdt_common.h Move fdt_is_type to be a Marvell specific function. It's not used by any 2018-04-08 12:20:06 +00:00
fdt_intr.h Pull the common FDT interrupt values into a new header rather than be magic 2016-10-26 15:18:08 +00:00
fdt_pinctrl_if.m
fdt_pinctrl.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
fdt_pinctrl.h
fdt_slicer.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
fdt_static_dtb.S
simplebus.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
simplebus.h