opnsense-src/sys/dev/gpio
Tom Jones 99adbd1b3f gpioc: Fix handling of priv data during open
Fix the ordering of priv data creation with setting priv data. This
handles failure better and resolves a panic when repeatedly running
tools/tools/gpioevents.

Explicitly initialise more fields in priv data while we are here.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46568
2024-09-26 10:16:17 +01:00
..
dwgpio sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
acpi_gpiobus.c gpiobus(4): Add an acpi variant of gpiobus 2024-09-14 12:02:33 +03:00
bytgpio.c bytgpio: expose PNP info 2024-07-29 14:09:08 -06:00
chvgpio.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
chvgpio_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gpio_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
gpiobacklight.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiobus.c gpiobus(4): Add an acpi variant of gpiobus 2024-09-14 12:02:33 +03:00
gpiobus_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
gpiobusvar.h gpiobus(4): Add an acpi variant of gpiobus 2024-09-14 12:02:33 +03:00
gpioc.c gpioc: Fix handling of priv data during open 2024-09-26 10:16:17 +01:00
gpioiic.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
gpiokeys.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiokeys.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gpiokeys_codes.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpioled.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpioled_fdt.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiomdio.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiopower.c gpiopower: trigger low, high and both edges 2024-01-28 13:29:41 +02:00
gpiopps.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpioregulator.c regulator: Move regulator code in dev/regulator 2024-01-10 19:20:32 +01:00
gpiospi.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
gpioths.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ofw_gpiobus.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
pl061.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
pl061.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pl061_acpi.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
pl061_fdt.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
qoriq_gpio.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
qoriq_gpio.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00