Page MenuHomeFreeBSD

gpiopps: don't use internal gpiobus function
ClosedPublic

Authored by vexeduxr on Jun 16 2025, 7:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 11:54 PM
Unknown Object (File)
Sat, Nov 1, 1:37 AM
Unknown Object (File)
Tue, Oct 28, 8:35 AM
Unknown Object (File)
Sun, Oct 26, 6:48 AM
Unknown Object (File)
Wed, Oct 22, 8:37 AM
Unknown Object (File)
Mon, Oct 20, 4:03 AM
Unknown Object (File)
Oct 6 2025, 8:45 AM
Unknown Object (File)
Oct 1 2025, 7:02 AM
Subscribers

Details

Summary

gpiobus_release_pin is only meant to be used internally by gpiobus. Use
gpio_pin_release instead.

This also fixes a memory leak as gpio_pin_get_by_ofw_idx returns a
malloc'd pointer, which gpio_pin_release now frees.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable