Artem Bityutskiy
53552d22bf
mtd: introduce a macro for max NAND ID sequence length
...
Introduce a helpful macro for the maximum NAND ID sequence length instead of
using the "8" magic number.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Acked-by: Huang Shijie <shijie8@gmail.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:15:06 +01:00
Artem Bityutskiy
ecb42fea59
mtd: nand: use more reasonable integer types
...
Use 'unsigned int' instead of 'unsigned long' in the NAND chip description data
structure, because 32-bits is more than enough for our purposes. We do not need
64-bits, which is what we end up on 64-bit architectures. We declare many
instances of this data structure, so this should help saving some amount of
memory.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:15:00 +01:00
Jingoo Han
97135118bd
mtd: davinci_nand: use module_platform_driver_probe()
...
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:42 +01:00
Jingoo Han
3a2a13fa90
mtd: txx9ndfmc: use module_platform_driver_probe()
...
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:40 +01:00
Jingoo Han
14ec6dae5b
mtd: sh_flctl: use module_platform_driver_probe()
...
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:37 +01:00
Jingoo Han
307d2a5156
mtd: fsmc_nand: use module_platform_driver_probe()
...
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:34 +01:00
Jingoo Han
c5345edf7b
mtd: atmel_nand: use module_platform_driver_probe()
...
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:31 +01:00
Jingoo Han
d9ba31092c
mtd: orion_nand: use module_platform_driver_probe()
...
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:29 +01:00
Jingoo Han
725a2277f8
mtd: doc: use module_platform_driver_probe()
...
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:24 +01:00
Rafał Miłecki
a6fb35d379
mtd: bcm47xxsflash: define opcodes
...
We need them to add erase/write support. This may duplicate some defines
with bcma and/or ssb code, but it makes more sense to keep that in
bcm47xxsflash which is supposed to work with both buses.
Duplicated defines will be removed from ssb/bcma.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:17 +01:00
Rafał Miłecki
1f816bc729
mtd: bcm47xxsflash: store info about flash type
...
It's going to be needed for erase and write operations, they differ
between Atmel and ST flashes.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:14 +01:00
Rafał Miłecki
41c81536ea
mtd: bcm47xxsflash: keep a reference to the BCMA
...
To implement erase and write support we need to "talk" with ChipCommon
BCMA core which serial flash it attached to.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:14:05 +01:00
Artem Bityutskiy
ccef4dcc5a
mtd: mtdcore: use const qualifier
...
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:04:27 +01:00
Artem Bityutskiy
afffeec9e0
mtd: devices: add const qualifiers
...
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:04:22 +01:00
Artem Bityutskiy
0984c89104
mtd: maps: add const qualifiers
...
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:04:20 +01:00
Artem Bityutskiy
cce2a026b5
mtd: physmap_of: add const qualifiers
...
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:04:13 +01:00
Artem Bityutskiy
255e9fd4b1
ssb: driver_mipscore: add a const qualifier
...
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Cc: Michael Buesch <m@bues.ch >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:04:10 +01:00
Artem Bityutskiy
f1faa69d8b
bcma_mips: add a const qualifier
...
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Cc: "Rafał Miłecki" <zajec5@gmail.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:04:07 +01:00
Artem Bityutskiy
f39cf6c7d4
mtd: physmap: add const qualifiers
...
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:02:40 +01:00
Artem Bityutskiy
d50dcb1d0e
mtd: plat-ram: add const quilifiers
...
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:02:33 +01:00
Artem Bityutskiy
26a4734623
mtd: add 'const' qualifier to a couple of register functions
...
'mtd_device_parse_register()' and 'parse_mtd_partitions()' functions accept a
an array of character pointers. These functions modify neither the pointers nor
the characters they point to. The characters are actually names of the MTD
parsers.
At the moment, the argument type is 'const char **', which means that only the
names of the parsers are constant. Let's turn the argument type into 'const
char * const *', which means that both names and the pointers which point to
them are constant.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:02:16 +01:00
Artem Bityutskiy
b08a25ade2
mtd: remove the ixp2000 map driver
...
This driver depends on CONFIG_IXP2000 which is not defined anywhere, which
means this driver is dead.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:01:55 +01:00
Artem Bityutskiy
bece641c96
mtd: remove the dilnetpc map driver support
...
This driver is marked as broken for very long time. Most probably this board is
just something ancient no one cares about anyway.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:01:43 +01:00
Artem Bityutskiy
a312c87ab0
mtd: remove the tqm8xxl map driver
...
This driver depends on the CONFIG_TQM8xxL symbol, which is not defined
anywhere, which means that this driver is dead.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 13:01:34 +01:00
Artem Bityutskiy
83bfc0d1a7
mtd: maps: kill the rpxlite map driver
...
This driver depends on the CONFIG_RPXCLASSIC and CONFIG_RPXLITE symbols, which
are not defined anywhere, and this means that this driver is dead.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Cc: linux-pcmcia@lists.infradead.org
Cc: Geert Uytterhoeven <geert@linux-m68k.org >
Cc: linux-m68k@lists.linux-m68k.org
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-04-05 12:59:42 +01:00