Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment