summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-03-23 11:19:01 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-04-19 22:04:48 +0200
commitdd2dcc004230b9d8fa809102cd326e3ee4bbdb2a (patch)
tree5e348eb4e012cb6ff32334ee5fce5de56a5419fb /include
parentb0fcd8ab7b3c89b5da7fff5224d06ed73e7a33cc (diff)
downloadlinux-dd2dcc004230b9d8fa809102cd326e3ee4bbdb2a.tar.gz
linux-dd2dcc004230b9d8fa809102cd326e3ee4bbdb2a.tar.bz2
linux-dd2dcc004230b9d8fa809102cd326e3ee4bbdb2a.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/of_mtd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/of_mtd.h b/include/linux/of_mtd.h
index e266caa36402..0f6aca5c6f2f 100644
--- a/include/linux/of_mtd.h
+++ b/include/linux/of_mtd.h
@@ -13,6 +13,7 @@
#include <linux/of.h>
int of_get_nand_ecc_mode(struct device_node *np);
+int of_get_nand_ecc_algo(struct device_node *np);
int of_get_nand_ecc_step_size(struct device_node *np);
int of_get_nand_ecc_strength(struct device_node *np);
int of_get_nand_bus_width(struct device_node *np);
@@ -25,6 +26,11 @@ static inline int of_get_nand_ecc_mode(struct device_node *np)
return -ENOSYS;
}
+static inline int of_get_nand_ecc_algo(struct device_node *np)
+{
+ return -ENOSYS;
+}
+
static inline int of_get_nand_ecc_step_size(struct device_node *np)
{
return -ENOSYS;