Re: [PATCH] pio: add arch specific gpio_is_valid() function

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nicolas Ferre
Date: Tuesday, August 24, 2010 - 1:19 am

Le 23/08/2010 18:36, David Brownell :

How do you customize it? I would like to keep the benefit of gpiolib
implementation.
In arch/arm/mach-at91/include/mach/gpio.h we include the
asm-generic/gpio.h. That is why I protect the generic code with
__HAVE_ARCH_GPIO_IS_VALID.

With this, we can keep the benefit of having an inline function.


Well the standard function:
return ((unsigned)number) < ARCH_NR_GPIOS;
is not suitable for AT91 as said in the thread.

Best regards,
-- 
Nicolas Ferre

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] pio: add arch specific gpio_is_valid() function, Nicolas Ferre, (Tue Aug 24, 1:19 am)
[PATCH v2] AT91: pio: add gpio_is_valid() function, Nicolas Ferre, (Mon Sep 6, 7:21 am)