201-SPI-Allow-specifying-the-parsers-for-SPI-flash.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 3f650fc30aa0badf9d02842ce396cea3eef2eeaa Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jonas.gorski@gmail.com>
  3. Date: Fri, 1 Jul 2011 23:16:47 +0200
  4. Subject: [PATCH 49/79] SPI: Allow specifying the parsers for SPI flash
  5. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
  6. ---
  7. include/linux/spi/flash.h | 5 ++++-
  8. 1 file changed, 4 insertions(+), 1 deletion(-)
  9. --- a/include/linux/spi/flash.h
  10. +++ b/include/linux/spi/flash.h
  11. @@ -2,7 +2,7 @@
  12. #define LINUX_SPI_FLASH_H
  13. struct mtd_partition;
  14. -
  15. +struct mtd_part_parser_data;
  16. /**
  17. * struct flash_platform_data: board-specific flash data
  18. * @name: optional flash device name (eg, as used with mtdparts=)
  19. @@ -10,6 +10,8 @@ struct mtd_partition;
  20. * @nr_parts: number of mtd_partitions for static partitoning
  21. * @type: optional flash device type (e.g. m25p80 vs m25p64), for use
  22. * with chips that can't be queried for JEDEC or other IDs
  23. + * @part_probe_types: optional list of MTD parser names to use for
  24. + * partitioning
  25. *
  26. * Board init code (in arch/.../mach-xxx/board-yyy.c files) can
  27. * provide information about SPI flash parts (such as DataFlash) to
  28. @@ -25,6 +27,7 @@ struct flash_platform_data {
  29. char *type;
  30. + const char **part_probe_types;
  31. /* we'll likely add more ... use JEDEC IDs, etc */
  32. };