In some cases, drivers may need to acquire an existing gpio_pin_t. With
the functions gpiobus currently exposes, this isn't possible as they
allocate a new pin then acquire that. Add a new gpio_pin_acquire
function which accepts an existing gpiobus_pin structure.
Details
Details
- Reviewers
imp wulf mmel - Commits
- rG4a21713278a8: gpiobus: add gpio_pin_acquire
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Otherwise, it looks fine to me.
sys/dev/gpio/gpiobusvar.h | ||
---|---|---|
162 | Wrong place, see the comment a line above. And, please, add short comment all other functions here have it. |
sys/dev/gpio/gpiobusvar.h | ||
---|---|---|
162 | Ah, not sure how I missed that. Thanks. |