summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorPekon Gupta <pekon@ti.com>2014-03-18 18:56:45 +0530
committerBrian Norris <computersforpeace@gmail.com>2014-03-20 01:47:59 -0700
commitb08e1f632c79e9e75bf2ae58107df27d0e35b459 (patch)
tree71aa976cc0bdb13dddc258f893015aca6d3c60e1 /mm
parent78f43c53835076f342133e6d2d6e577d6ae06480 (diff)
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 'mm')
0 files changed, 0 insertions, 0 deletions