mtd: nandsim: simplify NS_RAW_OFFSET()
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 28 Jul 2013 02:21:55 +0000 (11:21 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 20:05:35 +0000 (21:05 +0100)
commit3b8b8fa1ede2ea9f52a550fdddf2dda53ce52fc8
treee6a58dfabd0843b2786a8a8223f9dba5bfb879e9
parentf03a5729287a8bc1eb061a2f849b5a33ed9cd3ab
mtd: nandsim: simplify NS_RAW_OFFSET()

Simplify the definision of NS_RAW_OFFSET() by using (ns)->geom.pgszoob
which holds the sum of page size and OOB size.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nandsim.c