[U-Boot] [PATCH 1/2] GPIO: Extend the cmd_gpio API by gpio_{from, to}_string()
Mike Frysinger
vapier at gentoo.org
Mon May 14 07:51:24 CEST 2012
On Tuesday 01 May 2012 16:50:14 Marek Vasut wrote:
> The gpio_from_string() call shall parse the incoming GPIO name taken
> from the command line and return the GPIO number used within U-Boot or
> return -1 on error.
i.e. the already existing name_to_gpio() func
> The gpio_to_string() on the other hand allows nicer reporting of GPIO
> name in the output of cmd_gpio.
i don't see the value in this. we already have the string name from the user,
so all you've implemented is:
gpio_to_string(gpio_from_string(argv[]))
at which point, argv[] works fine.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120514/d8528d81/attachment.pgp>
More information about the U-Boot
mailing list