mtd: mxc_nand: cleanup copy_spare function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 13 May 2015 08:17:36 +0000 (11:17 +0300)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 20 May 2015 22:29:42 +0000 (15:29 -0700)
commit35d5d20efad8a04c8c002c7f31241dff973977a6
tree045dc48b80a78905640c6ff64f4429005ec151d2
parentbcb83a19d3ac95fe3c0e79e942fb628120738853
mtd: mxc_nand: cleanup copy_spare function

To give people without the reference manual at hand a chance to
understand how spare area is handled in the i.MX nand controller,
improve commenting, naming of variables and coding style.

No functional change intended.

Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
[baruch: declare oob_chunk_size; update comments; reword commit log]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c