freebsd-dev/sys/dev/gpio
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
..
bytgpio.c [bytgpio] prepare bytgpio(4) for modularization 2016-11-21 19:43:01 +00:00
chvgpio_reg.h Add SPDX tags for chvgpio driver sources 2018-02-24 20:19:31 +00:00
chvgpio.c Add SPDX tags for chvgpio driver sources 2018-02-24 20:19:31 +00:00
gpio_if.m Add gpio methods to read/write/configure up to 32 pins simultaneously. 2017-09-10 18:08:25 +00:00
gpiobacklight.c
gpiobus_if.m
gpiobus.c Revert r327828, r327949, r327953, r328016-r328026, r328041: 2018-01-21 15:42:36 +00:00
gpiobusvar.h Provide a public function to acquire a gpio pin by giving the property name 2018-02-18 23:08:43 +00:00
gpioc.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
gpioiic.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
gpiokeys_codes.c
gpiokeys.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
gpiokeys.h
gpioled_fdt.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
gpioled.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
gpiopower.c Add a GPIO poweroff and reset driver. 2016-11-16 02:14:07 +00:00
gpiopps.c
gpioregulator.c Add driver for GPIO controlled regulator. 2016-10-15 20:04:14 +00:00
gpiospi.c [gpiospi] add clock delay to avoid smashing of bits 2016-12-13 10:03:29 +00:00
gpioths.c [gpioths] new driver for temperature/humidity sensor DHT11 2017-01-16 15:36:36 +00:00
ofw_gpiobus.c Provide a public function to acquire a gpio pin by giving the property name 2018-02-18 23:08:43 +00:00