* read/write functions
@ 2001-06-04 15:58 Abraham vd Merwe
2001-06-04 16:00 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Abraham vd Merwe @ 2001-06-04 15:58 UTC (permalink / raw)
To: MTD for Linux
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
Hi!
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)?
--
Regards
Abraham
My cup hath runneth'd over with love.
__________________________________________________________
Abraham vd Merwe - 2d3D, Inc.
Device Driver Development, Outsourcing, Embedded Systems
Cell: +27 82 565 4451 Snailmail:
Tel: +27 21 761 7549 Block C, Antree Park
Fax: +27 21 761 7648 Doncaster Road
Email: abraham@2d3d.co.za Kenilworth, 7700
Http: http://www.2d3d.com South Africa
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: read/write functions
2001-06-04 15:58 read/write functions Abraham vd Merwe
@ 2001-06-04 16:00 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-06-04 16:00 UTC (permalink / raw)
To: Abraham vd Merwe; +Cc: MTD for Linux
abraham@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-04 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-04 15:58 read/write functions Abraham vd Merwe
2001-06-04 16:00 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox