[U-Boot] [PATCH] M28: Added pin name support in GPIO driver

Mike Frysinger vapier at gentoo.org
Wed Nov 23 23:18:00 CET 2011


On Tuesday 22 November 2011 17:37:49 Marek Vasut wrote:
> > like Marek wants, and then the header simply does:
> > 	extern int name_to_gpio(unsigned gpio);
> > 	#define name_to_gpio(gpio) name_to_gpio(gpio)
> 
> Man, this is really ... urgh. But fine, it's better than it was anyway.

this is the SOP in many Linux APIs, and is simple for keeping down duplication 
while allowing customizations of a tiny subset

if you have a better proposal then let's hear it
-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/20111123/cbe0d229/attachment.pgp>


More information about the U-Boot mailing list