Re: [PATCH/RFC] Add Amstrad Delta NAND support.

Jörn Engel
2006-04-25T14:05:30Z

On Tue, 25 April 2006 14:58:24 +0100, David Woodhouse wrote:
> On Tue, 2006-04-25 at 15:48 +0200, Jörn Engel wrote:
> > We could have a nand_read_byte()/nand_write_byte() pair of macros that
> > are defined to readb/writeb for the generic case and to
> > read_byte/write_byte for CONFIG_FIND_SOME_SANE_NAME.
>
> That makes nand.o non-generic, and prevents you from using it for
> multiple 'board drivers' in the same kernel build.

Valid concern. Still, I'd like some method to at least share all the
identical source code. You know the usual problems when two copies of
essentially the same get out of sync.

Jörn

--
Beware of bugs in the above code; I have only proved it correct, but
not tried it.
-- Donald Knuth