[PATCH] mtd: Add open firmware GPIO NAND driver

Matthias Fuchs matthias.fuchs at esd-electronics.com
Mon Jan 26 03:07:05 EST 2009


Hi Wolfram,

first I thought about adding the device tree code to the platform driver.
But if you look at the code you will see that there are many places where
the drivers differ. Merging my code with the platform driver will bring a lot of #ifdefs
and I do not like that! The identical functions are only a very few lines.

There is also some common code with the ndfc driver :-)

Matthias


On Sunday 25 January 2009 20:27, Wolfram Sang wrote:
> Hello Matthias,
> 
> On Sun, Jan 25, 2009 at 06:01:51PM +0100, Matthias Fuchs wrote:
> > This patch adds a GPIO based nand driver that is configured through
> > the open firmware flat device tree. It's based on the gpio platform
> > nand driver.
> 
> As there are some identical functions in this driver and the original
> platform based driver, I think it will be easier to maintain those
> functions if they are used by both drivers. Do you think it is feasible
> to share the code among those two?
> 
> Kind regards,
> 
>    Wolfram
> 




More information about the linux-mtd mailing list