Page MenuHomeFreeBSD

gpiobus: gpiobus_acquire_pin: panic on invalid pin
ClosedPublic

Authored by vexeduxr on Jun 19 2025, 2:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 28, 6:17 PM
Unknown Object (File)
Thu, Mar 19, 1:30 AM
Unknown Object (File)
Wed, Mar 18, 6:17 PM
Unknown Object (File)
Wed, Mar 18, 6:13 PM
Unknown Object (File)
Wed, Mar 18, 4:20 AM
Unknown Object (File)
Tue, Mar 17, 6:26 AM
Unknown Object (File)
Mon, Mar 16, 1:56 PM
Unknown Object (File)
Sun, Mar 8, 3:32 AM
Subscribers
None

Details

Summary

It is a programming error to call this function with an invalid pin.
Also return proper error value on failure.

Suggested by: mmel

Diff Detail

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

Event Timeline

vexeduxr created this revision.
This revision is now accepted and ready to land.Jun 19 2025, 2:38 PM

Go ahead and commit this. I saw the discussion, and this represents what was talked about elsewhere.