read/write functions

David Woodhouse dwmw2 at infradead.org
Mon Jun 4 12:00:26 EDT 2001


abraham at 2d3d.co.za said:
>  Do you need to implement all read/write/copy functions in the map
> driver even if your chip driver only uses some of those functions?

> For example, let's say I only use map->read32() and map->write32(), do
> I still need map->read16(), etc in my map driver or can I just leave
> them uninitialized (NULL)? 

You can leave them NULL. If any chip driver calls them it's buggy, so it'll 
oops.

--
dwmw2






More information about the linux-mtd mailing list