Skip to content
Snippets Groups Projects
Commit a6c9aa1f authored by Ben Gardiner's avatar Ben Gardiner Committed by Scott Wood
Browse files

nand_util: convert nand_write_skip_bad() to flags


In a future commit the behaviour of nand_write_skip_bad()
will be further extended.

Convert the only flag currently passed to the nand_write_
skip_bad() function to a bitfield of only one allocated
member. This should avoid an explosion of int's at the
end of the parameter list or the ambiguous calls like

nand_write_skip_bad(info, offset, len, buf, 0, 1, 1);
nand_write_skip_bad(info, offset, len, buf, 0, 1, 0);

Instead there will be:

nand_write_skip_bad(info, offset, len, buf, WITH_YAFFS_OOB |
			WITH_OTHER);

Signed-off-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
Acked-by: default avatarDetlev Zundel <dzu@denx.de>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent bee038e9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment