Skip to contentSkip to conversation

mtd: Dynamic allocation of device numbers

PATCH Superseded Ben Hutchings 1 participant 1 message Jan 5, 2010 Memory technology devices (MTD)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover mtd: Dynamic allocation of device numbers

This patch series removes the static array of MTD device pointers from mtdcore and replaces it with an idr structure for dynamic allocation of device numbers. It removes MAX_MTD_DEVICES, which is now meaningless.

Ben.

Ben Hutchings (6):
mtd: Introduce and use iteration macro for reading the MTD device
table
mtd: Use get_mtd_device_nm() to find named device in get_sb_mtd()
nandsim: Define CONFIG_NANDSIM_MAX_PARTS and use it instead of
MAX_MTD_DEVICES
mtd: Remove unnecessary comparisons with MAX_MTD_DEVICES
mtdblock: Replace array of block cache info with pointers in struct
mtd_info
mtd: Replace static array of devices with an idr structure

 drivers/mtd/devices/pmc551.c |    4 +-
 drivers/mtd/mtd_blkdevs.c    |   10 +-
 drivers/mtd/mtdblock.c       |   22 ++---
 drivers/mtd/mtdchar.c        |    3 -
 drivers/mtd/mtdcore.c        |  205 +++++++++++++++++++++--------------------
 drivers/mtd/mtdcore.h        |    7 ++-
 drivers/mtd/mtdoops.c        |    5 -
 drivers/mtd/mtdsuper.c       |   18 ++---
 drivers/mtd/nand/nandsim.c   |    7 +-
 include/linux/mtd/mtd.h      |    5 +-
 10 files changed, 143 insertions(+), 143 deletions(-)
Signature · 3 lines
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.