mtd: devices: elm: clean elm_load_syndrome
authorPekon Gupta <pekon@ti.com>
Thu, 20 Mar 2014 13:18:35 +0000 (18:48 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 26 Mar 2014 06:08:57 +0000 (23:08 -0700)
commitea0760244d235688b5fae4e5cdd9412c1fb1c2fe
treef5f0a7b83f316d0ba400450e9073c7f45e14907d
parent3f4eb14bdbe148fcc3a8e02f506ccc9b8c955ad4
mtd: devices: elm: clean elm_load_syndrome

This patch refactors elm_load_syndrome() to make it scalable for newer
ECC schemes by removing scheme specific macros (like ECC_BYTES*xx),
and instead using ECC control information passed during elm_config.

Signed-off-by: Pekon Gupta <pekon@ti.com>
Reviewed-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/elm.c
include/linux/platform_data/elm.h