[MTD] Clarify OOB-operation interface comments
Add more comment to OOB I/O interface. Read/write are not symmetric which is confusing and should be documented. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
64f6071056
commit
73a4421c5a
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@ typedef enum {
|
||||||
* mode = MTD_OOB_PLACE)
|
* mode = MTD_OOB_PLACE)
|
||||||
* @datbuf: data buffer - if NULL only oob data are read/written
|
* @datbuf: data buffer - if NULL only oob data are read/written
|
||||||
* @oobbuf: oob data buffer
|
* @oobbuf: oob data buffer
|
||||||
|
*
|
||||||
|
* Note, it is allowed to read more then one OOB area at one go, but not write.
|
||||||
|
* The interface assumes that the OOB write requests program only one page's
|
||||||
|
* OOB area.
|
||||||
*/
|
*/
|
||||||
struct mtd_oob_ops {
|
struct mtd_oob_ops {
|
||||||
mtd_oob_mode_t mode;
|
mtd_oob_mode_t mode;
|
||||||
|
|
Reference in a new issue