Re: [PATCH 3/3 v2] at91/atmel-mci: inclusion of sd/mmc driver in at91sam9g45 chip and board

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Haavard Skinnemoen
Date: Saturday, November 7, 2009 - 4:20 am

Ben Nizette <bn@niasdigital.com> wrote:

IIRC the most generally accepted way is to do

static inline bool gpio_is_valid(int pin)
{
	/* whatever */
}
#define gpio_is_valid gpio_is_valid

in the platform code and

#ifndef gpio_is_valid
/* provide definition of gpio_is_valid */
#endif

in the generic code. This way, there's only one symbol to grep for.

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

Messages in current thread:
[PATCH 1/2] atmel-mci: change use of dma slave interface, Nicolas Ferre, (Thu Sep 17, 9:29 am)
Re: [PATCH 1/2] atmel-mci: change use of dma slave interface, Haavard Skinnemoen, (Wed Sep 30, 6:55 am)
Re: [PATCH 3/3 v2] at91/atmel-mci: inclusion of sd/mmc dri ..., Haavard Skinnemoen, (Tue Oct 27, 5:35 pm)
Re: [PATCH 3/3 v2] at91/atmel-mci: inclusion of sd/mmc dri ..., =?ISO-8859-1?Q?Thiag ..., (Tue Oct 27, 5:53 pm)
Re: [PATCH 3/3 v2] at91/atmel-mci: inclusion of sd/mmc dri ..., Haavard Skinnemoen, (Tue Oct 27, 6:31 pm)
Re: [PATCH 3/3 v2] at91/atmel-mci: inclusion of sd/mmc dri ..., Haavard Skinnemoen, (Sat Nov 7, 4:20 am)
[PATCH] pio: add arch specific gpio_is_valid() function, Nicolas Ferre, (Mon Aug 23, 8:01 am)
Re: [PATCH] pio: add arch specific gpio_is_valid() function, Jean-Christophe PLAG ..., (Fri Sep 3, 9:41 am)