diff options
author | Pekon Gupta <[email protected]> | 2013-10-24 18:20:23 +0530 |
---|---|---|
committer | Brian Norris <[email protected]> | 2013-11-06 23:33:10 -0800 |
commit | 32d42a855a6f1445373f3d680e9125344aca294c (patch) | |
tree | 3831d11370ec53ab0a30ec38b1545288b47a2abe /lib/test-string_helpers.c | |
parent | b491da7233d5dc1a24d46ca1ad0209900329c5d0 (diff) |
mtd: nand: omap: use drivers/mtd/nand/nand_bch.c wrapper for BCH ECC instead of lib/bch.c
generic frame-work in mtd/nand/nand_bch.c is a wrapper above lib/bch.h which
encapsulates all control information specific to BCH ecc algorithm in software.
Thus this patch:
(1) replace omap specific implementations with equivalent wrapper in nand_bch.c
so that generic code from nand_bch.c is re-used. like;
omap3_correct_data_bch() -> nand_bch_correct_data()
omap3_free_bch() -> nand_bch_free()
(2) replace direct calls to lib/bch.c with wrapper functions defined in nand_bch.c
init_bch() -> nand_bch_init()
Signed-off-by: Pekon Gupta <[email protected]>
Tested-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions