From: Huang Shijie Date: Fri, 17 May 2013 03:17:34 +0000 (+0800) Subject: mtd: gpmi: set the BCH's geometry with the ecc info X-Git-Tag: v3.12-rc1~82^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2febcdf84b75aae627c61f0a5bf531a69299966c;p=pandora-kernel.git mtd: gpmi: set the BCH's geometry with the ecc info If the nand chip provides us the ECC info, we can use it firstly. The set_geometry_by_ecc_info() will use the ECC info, and calculate the parameters we need. Rename the old code to legacy_set_geometry() which will takes effect when there is no ECC info from the nand chip or we fails in the ECC info case. Signed-off-by: Huang Shijie Signed-off-by: Brian Norris Signed-off-by: David Woodhouse --- Reading git-diff-tree failed