8ff58122 | 26-Oct-2018 |
William A. Kennington III <wak@google.com> |
utility/aspeed: Add gpio name to offset method
Useful for converting from the GPIO name listed in the chip or board schematics to the offset which would be presented by the kernel. Made constexpr so
utility/aspeed: Add gpio name to offset method
Useful for converting from the GPIO name listed in the chip or board schematics to the offset which would be presented by the kernel. Made constexpr so that the conversions can be done at compile time.
Ex: gpioplus::utility::aspeed::nameToOffset("B3") -> 11
Tested: Built and run through the unit test suite.
Change-Id: I9ec859bf8fb6c60f15e149779d1bd3eb94fc1bd6 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|