History

mtd: rawnand: Use nanddev_mtd_max_bad_blocks()

nanddev_mtd_max_bad_blocks() is implemented by the generic NAND layer and is already doing what we need. Reuse this function instead of having our own implementation. While at it, get rid of the ->max_bb_per_die and ->blocks_per_die fields which are now unused.

Boris Brezillon committed 8 years ago

Commit 7beb37e1 parent d9745413 files · +1 −45Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/mtd/rawnand.h+0−5
@@ -1015,9 +1015,6 @@ struct nand_legacy { · 1014 unmodified lines
1015 * @id: [INTERN] holds NAND ID1015 * @id: [INTERN] holds NAND ID
1016 * @parameters: [INTERN] holds generic parameters under an easily1016 * @parameters: [INTERN] holds generic parameters under an easily
1017 * readable form.1017 * readable form.
1018 * @max_bb_per_die: [INTERN] the max number of bad blocks each die of a
1019 * this nand device will encounter their life times.
1020 * @blocks_per_die: [INTERN] The number of PEBs in a die
1021 * @data_interface: [INTERN] NAND interface timing information1018 * @data_interface: [INTERN] NAND interface timing information
1022 * @cur_cs: currently selected target. -1 means no target selected,1019 * @cur_cs: currently selected target. -1 means no target selected,
1023 * otherwise we should always have cur_cs >= 0 &&1020 * otherwise we should always have cur_cs >= 0 &&
@@ -1076,8 +1073,6 @@ struct nand_chip { · 52 unmodified lines
1076 1073
1077 struct nand_id id;1074 struct nand_id id;
1078 struct nand_parameters parameters;1075 struct nand_parameters parameters;
1079 u16 max_bb_per_die;
1080 u32 blocks_per_die;
1081 1076
1082 struct nand_data_interface data_interface;1077 struct nand_data_interface data_interface;
1083 1078

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t