]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: mxs: add name_to_gpio() function
authorMåns Rullgård <mans@mansr.com>
Tue, 15 Dec 2015 22:27:57 +0000 (22:27 +0000)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Jan 2016 16:54:16 +0000 (17:54 +0100)
commit88f91d1375aaf4d21d77a2f2daa351dea9132a58
tree773d349d3cbd8d2abea662bda72a4d026281bed7
parentfcbe8c56743a1f8ec397a71d5a932faee920bc8a
gpio: mxs: add name_to_gpio() function

Override the default name_to_gpio() function with one that
accepts strings of the form bank:pin.  If a colon is present
in the provided name, it behaves like the default version.

This lets the "gpio" command work with sane names rather than
requiring the user to enter the bank/pin composite in decimal.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
drivers/gpio/mxs_gpio.c