[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091107122002.1ecf6483@hskinnemoen-d830>
Date: Sat, 7 Nov 2009 12:20:02 +0100
From: Haavard Skinnemoen <haavard.skinnemoen@...el.com>
To: Ben Nizette <bn@...sdigital.com>
Cc: Ryan Mallon <ryan@...ewatersys.com>,
David Brownell <dbrownell@...rs.sourceforge.net>,
kernel@...32linux.org, linux-mmc@...r.kernel.org,
linux-kernel@...r.kernel.org,
Nicolas Ferre <nicolas.ferre@...el.com>,
David Brownell <david-b@...bell.net>,
Andrew Victor <avictor.za@...il.com>,
akpm@...ux-foundation.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 3/3 v2] at91/atmel-mci: inclusion of sd/mmc driver in
at91sam9g45 chip and board
Ben Nizette <bn@...sdigital.com> wrote:
> On Tue, 2009-11-03 at 15:30 +1300, Ryan Mallon wrote:
> > >
> > IIRC, we can't mark static inline functions as weak, and we don't want
> > to turn gpio_is_valid into an actual function call. We could do some
> > preprocessor magic, but that gets a bit messy.
>
> Messy but generally accepted.
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists