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)
committerNitin Garg <nitin.garg@freescale.com>
Wed, 16 Apr 2014 13:57:49 +0000 (08:57 -0500)
commitf2bc306ee314bb5f8660367b5ffe43488c764639
treef1cf6fd5267cdd0cc3642ed77cd16e0bc8139256
parentfbdf78d53275cf017b263945abfe00ce06881b4b
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>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/of/of_mtd.c
include/linux/of_mtd.h