On Tue, Sep 10, 2013 at 02:59:07PM +0800, Huang Shijie wrote: > Since I do not expose any details in the spi-nor.h > (i only add some commands in this header), how can i hides the details > with an abstraction? > could you explain it more clearly? The code to work out what opcodes to send to the device should be split out of the device driver so that other drivers talking to these chips don't need to reimplement the logic and new chips with new opcodes don't need to be added to multiple drivers.
Attachment:
signature.asc
Description: Digital signature