[U-Boot] [PATCH 1/2] GPIO: Extend the cmd_gpio API by gpio_{from, to}_string()
Mike Frysinger
vapier at gentoo.org
Thu Aug 2 19:50:51 CEST 2012
On Thursday 02 August 2012 06:05:14 Marek Vasut wrote:
> Dear Mike Frysinger,
>
> > On Monday 14 May 2012 07:31:35 Marek Vasut wrote:
> > > Dear Mike Frysinger,
> > >
> > > > 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
> > >
> > > You mean blackfin specific macro crap? Let's actually drop that and
> > > switch over to this one. That was my intention from start.
> >
> > don't spout this crap. try reading the actual history on the lists for
> > the background on the naming, and then try actually grepping the tree to
> > see that multiple targets implement it.
>
> So ... it was chosen to be compatible with linux gpio api, that's what I
> understood ... so I grepped the kernel source:
>
> linux-2.6# git grep name_to_gpio drivers/gpio/
> linux-2.6# git grep name_to_gpio include/
> linux-2.6# git grep gpio_to_name include/
> linux-2.6# git grep gpio_to_name drivers/gpio/
>
> Nothing.
the naming convention is inline with the linux naming convention. there is no
concept in linux of stringifying a GPIO number.
-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/20120802/eceb27da/attachment.pgp>
More information about the U-Boot
mailing list