of_mtd: Add helpers to get ECC strength and ECC step size
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Mon, 24 Feb 2014 22:24:48 +0000 (19:24 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:28 +0000 (22:42 -0700)
commit6d9434ebb76157071164b32ad03fbed165c74382
treeb457ad39dbac4a9b3a33ab0e1e48e461b4a57a9c
parent4b78fc42f3e3f07687dc27efc1153d29e360afa1
of_mtd: Add helpers to get ECC strength and ECC step size

This commit adds simple helpers to obtain the devicetree properties
that specify the ECC strength and ECC step size to use on a given
NAND controller.

Acked-by: Boris BREZILLON <b.brezillon.dev@gmail.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/of/of_mtd.c
include/linux/of_mtd.h