diff options
author | Pekon Gupta <pekon@ti.com> | 2014-03-18 18:56:45 +0530 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-20 01:47:59 -0700 |
commit | b08e1f632c79e9e75bf2ae58107df27d0e35b459 (patch) | |
tree | 71aa976cc0bdb13dddc258f893015aca6d3c60e1 /fs/ramfs | |
parent | 78f43c53835076f342133e6d2d6e577d6ae06480 (diff) | |
download | op-kernel-dev-b08e1f632c79e9e75bf2ae58107df27d0e35b459.zip op-kernel-dev-b08e1f632c79e9e75bf2ae58107df27d0e35b459.tar.gz |
mtd: nand: omap: ecc.correct: omap_elm_correct_data: cleanup for future enhancements
Current omap_elm_correct_data() code is not scalable for future ecc-schemes
due to presence of tweaks and hard-coded macros for BCH4_ECC and BCH8_ECC
ecc-schemes at multiple places.
This patch:
- replaces 'ecc_opt' with '(info->nand.ecc.strength == BCH8_MAX_ERROR)
used to differentiate between BCH8_HW and BCH4_SW
- replaces macros (defining magic number for specific ecc-scheme) with
generic variables
- removes dependency on macros defined in elm.h (like BCHx_ECC_OOB_BYTES)
Tested-by: Stefan Roese <sr@denx.de>
Signed-off-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'fs/ramfs')
0 files changed, 0 insertions, 0 deletions