of: mtd: prepare helper reading NAND ECC algo from DT
authorRafał Miłecki <zajec5@gmail.com>
Wed, 23 Mar 2016 10:19:01 +0000 (11:19 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:04:48 +0000 (22:04 +0200)
commitdd2dcc004230b9d8fa809102cd326e3ee4bbdb2a
tree5e348eb4e012cb6ff32334ee5fce5de56a5419fb
parentb0fcd8ab7b3c89b5da7fff5224d06ed73e7a33cc
of: mtd: prepare helper reading NAND ECC algo from DT

NAND subsystem is being slightly reworked to store ECC details in
separated fields. In future we'll want to add support for more DT
properties as specifying every possible setup with a single
"nand-ecc-mode" is a pretty bad idea.
To allow this let's add a helper that will support something like
"nand-ecc-algo" in future. Right now we use it for keeping backward
compatibility.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/of/of_mtd.c
include/linux/of_mtd.h