diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-05-14 13:32:53 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-05-15 16:04:00 -0400 |
commit | 8947e396a8296c5297928b60043f35dfa56baa05 (patch) | |
tree | 2d867219f03f0e1ce4100c0424cf331948d6fb8c /drivers/mtd | |
parent | db7c727402b3f6a604f0c52be5f6df8ca3797030 (diff) |
Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"
In commit 8ff16cf77ce3 ("Documentation: devicetree: m25p80: add "nor-jedec"
binding"), we added a generic "nor-jedec" binding to catch all
mostly-compatible SPI NOR flash which can be detected via the READ ID
opcode (0x9F). This was discussed and reviewed at the time, however
objections have come up since then as part of this discussion:
http://lkml.kernel.org/g/20150511224646.GJ32500@ld-irv-0074
It seems the parties involved agree that "jedec,spi-nor" does a better
job of capturing the fact that this is SPI-specific, not just any NOR
flash.
This binding was only merged for v4.1-rc1, so it's still OK to change
the naming.
At the same time, let's move the documentation to a better name.
Next up: stop referring to code (drivers/mtd/devices/m25p80.c) from the
documentation.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Rafał Miłecki <zajec5@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: devicetree@vger.kernel.org
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/devices/m25p80.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 7c8b1694a134..3af137f49ac9 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c | |||
@@ -223,7 +223,7 @@ static int m25p_probe(struct spi_device *spi) | |||
223 | */ | 223 | */ |
224 | if (data && data->type) | 224 | if (data && data->type) |
225 | flash_name = data->type; | 225 | flash_name = data->type; |
226 | else if (!strcmp(spi->modalias, "nor-jedec")) | 226 | else if (!strcmp(spi->modalias, "spi-nor")) |
227 | flash_name = NULL; /* auto-detect */ | 227 | flash_name = NULL; /* auto-detect */ |
228 | else | 228 | else |
229 | flash_name = spi->modalias; | 229 | flash_name = spi->modalias; |
@@ -255,7 +255,7 @@ static int m25p_remove(struct spi_device *spi) | |||
255 | * since most of these flash are compatible to some extent, and their | 255 | * since most of these flash are compatible to some extent, and their |
256 | * differences can often be differentiated by the JEDEC read-ID command, we | 256 | * differences can often be differentiated by the JEDEC read-ID command, we |
257 | * encourage new users to add support to the spi-nor library, and simply bind | 257 | * encourage new users to add support to the spi-nor library, and simply bind |
258 | * against a generic string here (e.g., "nor-jedec"). | 258 | * against a generic string here (e.g., "jedec,spi-nor"). |
259 | * | 259 | * |
260 | * Many flash names are kept here in this list (as well as in spi-nor.c) to | 260 | * Many flash names are kept here in this list (as well as in spi-nor.c) to |
261 | * keep them available as module aliases for existing platforms. | 261 | * keep them available as module aliases for existing platforms. |
@@ -305,7 +305,7 @@ static const struct spi_device_id m25p_ids[] = { | |||
305 | * Generic support for SPI NOR that can be identified by the JEDEC READ | 305 | * Generic support for SPI NOR that can be identified by the JEDEC READ |
306 | * ID opcode (0x9F). Use this, if possible. | 306 | * ID opcode (0x9F). Use this, if possible. |
307 | */ | 307 | */ |
308 | {"nor-jedec"}, | 308 | {"spi-nor"}, |
309 | { }, | 309 | { }, |
310 | }; | 310 | }; |
311 | MODULE_DEVICE_TABLE(spi, m25p_ids); | 311 | MODULE_DEVICE_TABLE(spi, m25p_ids); |