summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_omap_bch_decoder.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-11-19 09:35:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-19 09:45:23 +0100
commit00a1d12bf7128774b9d65f8b2becedaf7effabcb (patch)
treee500acd6866ba6ddff1583761c37cd2be3932375 /drivers/mtd/nand/nand_omap_bch_decoder.c
parent418769972dca8ff6af08eabcf47cfe70aaa3cd43 (diff)
downloadbarebox-00a1d12bf7128774b9d65f8b2becedaf7effabcb.tar.gz
barebox-00a1d12bf7128774b9d65f8b2becedaf7effabcb.tar.xz
mtd: nand: omap: Add header file for bch decoder
omap_gpmc_decode_bch() is defined in its user rather than properly in a header file. Add a header file to be included by both its user and the file implementing it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/nand/nand_omap_bch_decoder.c')
-rw-r--r--drivers/mtd/nand/nand_omap_bch_decoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_omap_bch_decoder.c b/drivers/mtd/nand/nand_omap_bch_decoder.c
index 64e8031785..4dd28a7704 100644
--- a/drivers/mtd/nand/nand_omap_bch_decoder.c
+++ b/drivers/mtd/nand/nand_omap_bch_decoder.c
@@ -15,6 +15,8 @@
#include <common.h>
+#include "nand_omap_bch_decoder.h"
+
#define mm 13
#define kk_shorten 4096
#define nn 8191 /* Length of codeword, n = 2**mm - 1 */