Add support for multiple gpio banks
Currently, the code assumes that all the GPIOs are on one bank. Support
for systems that do not use the alphanumeric reference and have multiple
gpio banks is added. Using the num/pin key distinction, the parsing
process is differentiated between an alphanumeric reference and integer
labeling.
NOTE: Since this change assumes /dev/gpiochip0 is present, systems using
it need to be using at least Linux kernel 4.8.
Change-Id: Ib11531bf326f6a9291fc03caaad323c0779b5a0d
Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com>
1 file changed