]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: gpmi: use mtd_ooblayout_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 3 Feb 2016 19:11:44 +0000 (20:11 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:50 +0000 (22:05 +0200)
commit6e961acf54bc76e12dd6cbddcc4772d6c8bbe9aa
treeb233c18c531feaf0f6fab9697eda9c30925df919
parentb0d34e579157b8e16b15f6a0dc3ab66b4820951b
mtd: nand: gpmi: use mtd_ooblayout_xxx() helpers where appropriate

The mtd_ooblayout_xxx() helper functions have been added to avoid direct
accesses to the ecclayout field, and thus ease for future reworks.
Use these helpers in all places where the oobfree[] and eccpos[] arrays
where directly accessed.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c