From: Brian Norris Date: Tue, 25 Sep 2012 03:40:51 +0000 (-0700) Subject: mtd: nand: split simple ID decode into its own function X-Git-Tag: v3.7-rc1~70^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f23a481c4e0ccb006470b1c890cc7236ba634e67;p=pandora-kernel.git mtd: nand: split simple ID decode into its own function When detecting NAND parameters, the code gets a little ugly so that the logic is obscured. Try to remedy that by moving code to separate functions that have well-defined purposes. This patch splits out the simple ID decode functionality, where all the information regarding NAND size/blocksize/pagesize/oobsize/busw is encoded in the first two bytes of the ID string. Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed