Commit 0cf5c7d
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>1 parent 85632c1 commit 0cf5c7d
File tree
2 files changed
+15
-33
lines changed- drivers/mtd/nand/raw
- include/linux/mtd
2 files changed
+15
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6085 | 6085 | | |
6086 | 6086 | | |
6087 | 6087 | | |
6088 | | - | |
6089 | | - | |
| 6088 | + | |
| 6089 | + | |
| 6090 | + | |
6090 | 6091 | | |
6091 | 6092 | | |
6092 | 6093 | | |
6093 | 6094 | | |
6094 | 6095 | | |
6095 | | - | |
| 6096 | + | |
6096 | 6097 | | |
6097 | 6098 | | |
6098 | | - | |
6099 | | - | |
6100 | | - | |
6101 | | - | |
6102 | | - | |
6103 | | - | |
6104 | | - | |
6105 | | - | |
6106 | 6099 | | |
6107 | 6100 | | |
6108 | 6101 | | |
| |||
6135 | 6128 | | |
6136 | 6129 | | |
6137 | 6130 | | |
6138 | | - | |
6139 | 6131 | | |
6140 | 6132 | | |
6141 | 6133 | | |
| |||
6147 | 6139 | | |
6148 | 6140 | | |
6149 | 6141 | | |
6150 | | - | |
6151 | | - | |
| 6142 | + | |
| 6143 | + | |
| 6144 | + | |
6152 | 6145 | | |
6153 | 6146 | | |
6154 | 6147 | | |
| |||
6159 | 6152 | | |
6160 | 6153 | | |
6161 | 6154 | | |
6162 | | - | |
6163 | | - | |
6164 | | - | |
6165 | 6155 | | |
6166 | 6156 | | |
6167 | 6157 | | |
| |||
6220 | 6210 | | |
6221 | 6211 | | |
6222 | 6212 | | |
6223 | | - | |
6224 | 6213 | | |
6225 | 6214 | | |
6226 | 6215 | | |
| |||
6231 | 6220 | | |
6232 | 6221 | | |
6233 | 6222 | | |
6234 | | - | |
6235 | | - | |
| 6223 | + | |
| 6224 | + | |
| 6225 | + | |
6236 | 6226 | | |
6237 | 6227 | | |
6238 | 6228 | | |
| |||
6242 | 6232 | | |
6243 | 6233 | | |
6244 | 6234 | | |
6245 | | - | |
6246 | | - | |
6247 | | - | |
6248 | 6235 | | |
6249 | 6236 | | |
6250 | 6237 | | |
| |||
6293 | 6280 | | |
6294 | 6281 | | |
6295 | 6282 | | |
6296 | | - | |
6297 | 6283 | | |
6298 | 6284 | | |
6299 | 6285 | | |
| |||
6315 | 6301 | | |
6316 | 6302 | | |
6317 | 6303 | | |
| 6304 | + | |
| 6305 | + | |
| 6306 | + | |
| 6307 | + | |
| 6308 | + | |
6318 | 6309 | | |
6319 | 6310 | | |
6320 | 6311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1663 | 1663 | | |
1664 | 1664 | | |
1665 | 1665 | | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | 1666 | | |
1676 | 1667 | | |
1677 | 1668 | | |
| |||
0 commit comments