freebsd-dev/sys/dev/gpio
Oleksandr Tymoshenko bc90a48ccf Add OF_prop_free function as a counterpart for OF_*prop_alloc
- Introduce new OF API function OF_prop_free to free memory allocated by
  OF_getprop_alloc and OF_getencprop_alloc. Current code just calls free(9)
  with M_OFWPROP memory class which assumes knowledge about OF_*prop_alloc
  functions' internals and leads to unneccessary code coupling

- Convert some of the free(..., M_OFWPROP) instances to OF_prop_free

Files affected by this commit are the ones I was able to test on real
hardware. The rest of free(..., M_OFWPROP) instances will be handled with
idividual maintainers

Reviewed by:	andrew
Differential Revision:	https://reviews.freebsd.org/D6315
2016-05-11 18:20:02 +00:00
..
gpio_if.m Implement a new method to retrieve the gpiobus reference from a GPIO 2015-01-31 15:50:19 +00:00
gpiobacklight.c Use GPIO pin management API in gpiobacklight 2016-05-11 00:26:52 +00:00
gpiobus_if.m Add a new ioctl to allow the setting of GPIO pin names. 2015-03-08 00:47:50 +00:00
gpiobus.c INTRNG: Define 'INTR_IRQ_INVALID' constant and use it consistently 2016-04-28 12:04:12 +00:00
gpiobusvar.h Pass device tree node as a part of gpio_pin_get_by_ofw_XXX API 2016-05-10 20:02:03 +00:00
gpioc.c Use DEVMETHOD_END instead of its value to indicate end of methods table 2016-05-11 00:34:43 +00:00
gpioiic.c Use DEVMETHOD_END instead of its value to indicate end of methods table 2016-05-11 00:34:43 +00:00
gpiokeys_codes.c Add gpiokeys driver 2016-05-11 17:57:26 +00:00
gpiokeys.c Add OF_prop_free function as a counterpart for OF_*prop_alloc 2016-05-11 18:20:02 +00:00
gpiokeys.h Add gpiokeys driver 2016-05-11 17:57:26 +00:00
gpioled.c Add OF_prop_free function as a counterpart for OF_*prop_alloc 2016-05-11 18:20:02 +00:00
ofw_gpiobus.c Add OF_prop_free function as a counterpart for OF_*prop_alloc 2016-05-11 18:20:02 +00:00