freebsd-dev/sys/arm/nvidia
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
..
drm2 vm_wait() rework. 2018-02-20 10:13:13 +00:00
tegra124 Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
as3722_gpio.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
as3722_regulators.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
as3722_rtc.c
as3722.c TEGRA: Prepare Tegra subtree for inclusion into ARM generic kernel. 2016-09-30 05:25:15 +00:00
as3722.h
tegra_abpmisc.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
tegra_ahci.c Convert extres/phy to kobj model. 2018-01-20 17:02:17 +00:00
tegra_efuse.c Add the missing void to function signatures in much of the arm code. 2016-12-13 13:43:22 +00:00
tegra_efuse.h
tegra_ehci.c Convert extres/phy to kobj model. 2018-01-20 17:02:17 +00:00
tegra_gpio.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
tegra_i2c.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
tegra_lic.c TEGRA: Prepare Tegra subtree for inclusion into ARM generic kernel. 2016-09-30 05:25:15 +00:00
tegra_mc.c TEGRA: Add basic driver for memory controller. 2016-11-04 11:39:19 +00:00
tegra_pcie.c Convert extres/phy to kobj model. 2018-01-20 17:02:17 +00:00
tegra_pinmux.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
tegra_pmc.h
tegra_rtc.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
tegra_sdhci.c Fix build when option MMCCAM is defined. 2018-03-08 22:49:36 +00:00
tegra_soctherm_if.m
tegra_soctherm.c TEGRA: Prepare Tegra subtree for inclusion into ARM generic kernel. 2016-09-30 05:25:15 +00:00
tegra_uart.c Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00
tegra_usbphy.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
tegra_xhci.c Convert extres/phy to kobj model. 2018-01-20 17:02:17 +00:00