freebsd-dev/sys/mips
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
..
atheros sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
beri sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
broadcom bhnd(4): Use the new BHND_CAP_BP64 capability flag to exclude DMA 2018-03-29 19:48:50 +00:00
cavium Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
conf [ar71xx] Fix the TL-wdr3600/tl-wdr4300 hints in the new world order. 2018-02-07 09:35:47 +00:00
gxemul sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
include Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
ingenic Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
malta sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
mediatek Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
mips Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
nlm Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
sibyte sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00