]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mtd: rawnand: provide only single helper function for ECC conf
authorAbhishek Sahu <absahu@codeaurora.org>
Wed, 20 Jun 2018 07:27:42 +0000 (12:57 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 07:24:10 +0000 (09:24 +0200)
commit0cf5c7dbaa392d11cfae532cedeaad0ac48b2165
treeebcbc57b4652ba83d6cb9c04e3ddddd30f2fecbd
parent85632c17194e35e00871cfd80713c9acf087ac4f
mtd: rawnand: provide only single helper function for ECC conf

Function nand_ecc_choose_conf() will be help for all the cases, so
other helper functions can be made static.

nand_check_ecc_caps(): Invoke nand_ecc_choose_conf() with
                       both chip->ecc.size and chip->ecc.strength
                       value set.

nand_maximize_ecc(): Invoke nand_ecc_choose_conf() with
                     NAND_ECC_MAXIMIZE flag.

nand_match_ecc_req(): Invoke nand_ecc_choose_conf() with either
                      chip->ecc.size or chip->ecc.strength value
                      set and without NAND_ECC_MAXIMIZE flag.

CC: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h