summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/elm.h
diff options
context:
space:
mode:
authorPekon Gupta <pekon@ti.com>2014-03-20 18:48:35 +0530
committerBrian Norris <computersforpeace@gmail.com>2014-03-25 23:08:57 -0700
commitea0760244d235688b5fae4e5cdd9412c1fb1c2fe (patch)
treef5f0a7b83f316d0ba400450e9073c7f45e14907d /include/linux/platform_data/elm.h
parent3f4eb14bdbe148fcc3a8e02f506ccc9b8c955ad4 (diff)
downloadlwn-ea0760244d235688b5fae4e5cdd9412c1fb1c2fe.tar.gz
lwn-ea0760244d235688b5fae4e5cdd9412c1fb1c2fe.zip
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>
Diffstat (limited to 'include/linux/platform_data/elm.h')
-rw-r--r--include/linux/platform_data/elm.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/platform_data/elm.h b/include/linux/platform_data/elm.h
index 6e37156b0902..4edb40676b3f 100644
--- a/include/linux/platform_data/elm.h
+++ b/include/linux/platform_data/elm.h
@@ -26,13 +26,6 @@ enum bch_ecc {
/* ELM support 8 error syndrome process */
#define ERROR_VECTOR_MAX 8
-#define BCH8_ECC_OOB_BYTES 13
-#define BCH4_ECC_OOB_BYTES 7
-/* RBL requires 14 byte even though BCH8 uses only 13 byte */
-#define BCH8_SIZE (BCH8_ECC_OOB_BYTES + 1)
-/* Uses 1 extra byte to handle erased pages */
-#define BCH4_SIZE (BCH4_ECC_OOB_BYTES + 1)
-
/**
* struct elm_errorvec - error vector for elm
* @error_reported: set true for vectors error is reported