summaryrefslogtreecommitdiff
path: root/include/linux/mtd/onenand.h
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2017-12-15 13:39:52 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2018-01-06 15:09:54 +0100
commitf72071b892d6f5eccf90756f3c12b1422bd4b474 (patch)
treeda54f4c67f3d7e598e03df9203e86ac40ab21bfe /include/linux/mtd/onenand.h
parent33f45c44d68b3593826524ba6d02bd9cce9e101e (diff)
mtd: Add an helper to make erase request aligned on ->erasesize
There's currently nothing forcing alignment of einfo->addr and einfo->len on mtd->erasesize. Since we don't know if automatically aligning those field in mtd_erase() will hurt some drivers, we add an helper function to let drivers that need such an alignment explicitly ask for it. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Diffstat (limited to 'include/linux/mtd/onenand.h')
0 files changed, 0 insertions, 0 deletions