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
10151015 * @id: [INTERN] holds NAND ID
10161016 * @parameters: [INTERN] holds generic parameters under an easily
10171017 * 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
10211018 * @data_interface: [INTERN] NAND interface timing information
10221019 * @cur_cs: currently selected target. -1 means no target selected,
10231020 * otherwise we should always have cur_cs >= 0 &&
@@ -1076,8 +1073,6 @@ struct nand_chip { · 52 unmodified lines
10761073
10771074 struct nand_id id;
10781075 struct nand_parameters parameters;
1079− u16 max_bb_per_die;
1080− u32 blocks_per_die;
10811076
10821077 struct nand_data_interface data_interface;
10831078

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