I'm not so keen on that particular overloading, but I can
understand why it might be wanted on systems which have a
happy one-to-one mapping between GPIOs and pins.
If you do that, be ready to provide a pinmux-only interface
at some point when this "piggybacking" breaks something...
Yeah. Better to test-and-set the flag and then request, and backout
if it fails, than the other way. Just who wrote that crap in the
first place? Sigh. (Notice it's done that way already in the code
path handling implicit requesting ... )
I'll send an updated patch along soonish.
- Dave
--