[PATCH v4 01/10] mtd: nand: add 'oob_required' argument to NAND {read, write}_page interfaces
Mike Dunn
mikedunn at newsguy.com
Thu May 3 13:16:53 EDT 2012
Hi Brian,
I wonder why the new argument type is int instead of bool. Sorry if this was
already discussed... I didn't follow the earlier discussions very closely.
Still, it seems inconsistent. When calling the functions, you sometimes pass
the bool form...
> - status = docg4_read_page(mtd, nand, buf, DOCG4_FACTORY_BBT_PAGE);
> + status = docg4_read_page(mtd, nand, buf, false, DOCG4_FACTORY_BBT_PAGE);
and sometimes the int form...
> - chip->ecc.read_page_raw(mtd, chip, buf, page);
> + chip->ecc.read_page_raw(mtd, chip, buf, 1, page);
I think inconsistency can be confusing.
Aside from that, you can add my Acked-by for the docg4 driver if you like.
Thanks,
Mike
More information about the linux-mtd
mailing list