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

2011-11-24 Thread Mike Frysinger
On Wednesday 23 November 2011 17:33:02 Mike Frysinger wrote: > On Wednesday 23 November 2011 16:10:49 Robert Deliën wrote: > > -#ifndef name_to_gpio > > -#define name_to_gpio(name) simple_strtoul(name, NULL, 10) > > +#ifndef gpio_name_to_pin > > +#define gpio_name_to_pin(name) simple_strtoul(na

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

2011-11-23 Thread Mike Frysinger
On Wednesday 23 November 2011 16:10:49 Robert Deliën wrote: > -#ifndef name_to_gpio > -#define name_to_gpio(name) simple_strtoul(name, NULL, 10) > +#ifndef gpio_name_to_pin > +#define gpio_name_to_pin(name) simple_strtoul(name, NULL, 10) > #endif as for the underlying reason, i don't have a

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

2011-11-23 Thread Mike Frysinger
On Wednesday 23 November 2011 16:10:49 Robert Deliën wrote: > This patch adds pin name support in the GPIO driver. With this patch > applied, the gpio command supports pins to be addressed with friendly > names. this patch is mangled as well > --- a/arch/blackfin/include/asm/gpio.h > +++ b/arch/b

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

2011-11-23 Thread Robert Deliën
This patch adds pin name support in the GPIO driver. With this patch applied, the gpio command supports pins to be addressed with friendly names. Please note: Function gpio_name_to_pin checks for set bits getting lost in translation and returns -EINVAL if this occurs, but a correctly translated