16 NANDS
David Woodhouse
dwmw2 at infradead.org
Wed Jan 8 03:14:59 EST 2003
tglx at linutronix.de said:
> The functions are not that different, but it's better to have a
> little duplicated code instead of if (buswitdh == x) then else....
> crap.
Bear in mind that if/then/else crap can be hidden inside #defines fairly
effectively, and optimises away perfectly in the case where you compile for
only one buswidth -- unlike out-of-line function calls.
What Nico did with cfi_read() et al is worth considering.
--
dwmw2
More information about the linux-mtd
mailing list