Skip to content
Commit 1ba00182 authored by Chris Packham's avatar Chris Packham Committed by Stefan Roese
Browse files

mtd: nand: pxa3xx: simplify ECC hardware parameters



Replace the if/else chain in pxa_ecc_init() with a lookup table. This
makes the code more concise and hopefully easier to follow. Remove the
unused ecc_layout tables and replace it with a single dummy one (the
pxa3xx driver has never used this but the mtd subsystem expects it to be
provided).

Tested on an Allied Telesis x530 switch with Micron MT29F2G08ABAEAWP
NAND Flash.

Signed-off-by: default avatarChris Packham <judge.packham@gmail.com>
parent 88383fd8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment