All of lore.kernel.org
 help / color / mirror / Atom feed
* Devel error: redefinition of 'struct flash_platform_data'
@ 2010-11-17 15:40 Alexis RODET
  2010-11-17 16:05 ` Russell King - ARM Linux
  0 siblings, 1 reply; 47+ messages in thread
From: Alexis RODET @ 2010-11-17 15:40 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

I'm making an arm machine with both mtd flash and m25p spi flash and try
to define partitions for both chips in my code.

But there are 2 definitions of 'struct flash_platform_data' and both
definition are incompatible:

in <asm/mach/flash.h>:
struct flash_platform_data {
    const char    *map_name;
    const char    *name;
    unsigned int    width;
    int        (*init)(void);
    void        (*exit)(void);
    void        (*set_vpp)(int on);
    void        (*mmcontrol)(struct mtd_info *mtd, int sync_read);
    struct mtd_partition *parts;
    unsigned int    nr_parts;
};

in <linux/spi/flash.h>:
struct flash_platform_data {
    char        *name;
    struct mtd_partition *parts;
    unsigned int    nr_parts;

    char        *type;

    /* we'll likely add more ... use JEDEC IDs, etc */
};

Both are included in a lot of machines or driver.

I don't know what to do.
Which one should I jeopardize or rename ?

Thank for your help,
Alexis RODET
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alexis_rodet.vcf
Type: text/x-vcard
Size: 315 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101117/80bb9b43/attachment-0001.vcf>

^ permalink raw reply	[flat|nested] 47+ messages in thread

end of thread, other threads:[~2011-07-10  9:06 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-17 15:40 Devel error: redefinition of 'struct flash_platform_data' Alexis RODET
2010-11-17 16:05 ` Russell King - ARM Linux
2010-11-18  9:34   ` [PATCH] Renaming 'struct flash_platform_data' into 'struct Alexis RODET
2010-11-18  9:34   ` [PATCH] Renaming 'struct flash_platform_data' into 'struct spi_flash_platform_data' in include/linux/spi/flash.h Alexis RODET
2010-11-19 17:23   ` Alexis RODET
2010-11-21  4:47     ` Baruch Siach
2010-11-22  9:58       ` Alexis RODET
2010-11-22  9:58         ` Alexis RODET
2010-11-22  9:58         ` Alexis RODET
2010-11-22 13:59         ` David Brownell
2010-11-22 13:59           ` David Brownell
2010-11-22 14:15           ` Alexis RODET
2010-11-22 14:15             ` Alexis RODET
     [not found]             ` <4CEA7AF0.6000804-zROAmvwsW6hWk0Htik3J/w@public.gmane.org>
2010-11-22 21:52               ` David Brownell
2010-11-22 21:52                 ` David Brownell
     [not found]                 ` <327178.68946.qm-g47maUHHHF/6X00i2u5GFvu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-11-23  9:30                   ` Alexis RODET
2010-11-23  9:30                     ` Alexis RODET
2010-11-23  9:36                     ` Baruch Siach
2010-11-23  9:36                       ` Baruch Siach
     [not found]                       ` <20101123093643.GC6156-X57xyCW21FZ5l4KbKkTfamZHpeb/A1Y/@public.gmane.org>
2010-11-23  9:41                         ` Alexis RODET
2010-11-23  9:41                           ` Alexis RODET
2010-11-23  9:44                           ` Baruch Siach
2010-11-23  9:44                             ` Baruch Siach
     [not found]                             ` <20101123094414.GD6156-X57xyCW21FZ5l4KbKkTfamZHpeb/A1Y/@public.gmane.org>
2010-11-23  9:55                               ` Alexis RODET
2010-11-23  9:55                                 ` Alexis RODET
     [not found]                                 ` <4CEB8F7C.6070102-zROAmvwsW6hWk0Htik3J/w@public.gmane.org>
2011-01-21 19:28                                   ` Grant Likely
2011-01-21 19:28                                     ` Grant Likely
2011-01-24 11:37                                     ` [PATCH 0/1] " Alexis RODET
2011-01-24 11:37                                       ` Alexis RODET
2011-01-24 15:16                                       ` [PATCH 1/1] " Alexis RODET
2011-01-24 15:16                                         ` Alexis RODET
     [not found]                                       ` <4D3D6472.8030505-zROAmvwsW6hWk0Htik3J/w@public.gmane.org>
2011-01-24 15:16                                         ` Alexis RODET
2011-01-24 15:49                                         ` [PATCH 0/1] " Alexis RODET
2011-01-24 15:49                                           ` Alexis RODET
     [not found]                                           ` <4D3D9FA6.3050900-zROAmvwsW6hWk0Htik3J/w@public.gmane.org>
2011-01-24 17:52                                             ` Grant Likely
2011-01-24 17:52                                               ` Grant Likely
     [not found]                                               ` <AANLkTikDHbKt5q+o2LK89hHZ3EUeeYzmQVJj8jXgQ+pB-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-25  9:23                                                 ` Alexis RODET
2011-01-25  9:23                                                   ` Alexis RODET
2011-01-31 11:29                                                   ` [PATCH 1/1] merging arch/arm/include/asm/mach/flash.h and include/linux/spi/flash.h into single header file include/linux/mtd/flash.h Alexis RODET
     [not found]                                                   ` <4D3E9683.5090906-zROAmvwsW6hWk0Htik3J/w@public.gmane.org>
2011-01-31 11:29                                                     ` Alexis RODET
2011-01-31 11:29                                                       ` Alexis RODET
     [not found]                                                       ` <1296473351-22771-1-git-send-email-alexis.rodet-zROAmvwsW6hWk0Htik3J/w@public.gmane.org>
2011-07-10  7:38                                                         ` Grant Likely
2011-07-10  7:38                                                           ` Grant Likely
2011-01-25  9:40                                                 ` [PATCH 0/1] Renaming 'struct flash_platform_data' into 'struct spi_flash_platform_data' in include/linux/spi/flash.h Alexis RODET
2011-01-25  9:40                                                   ` Alexis RODET
     [not found]                                                   ` <4D3E9AA1.4020308-zROAmvwsW6hWk0Htik3J/w@public.gmane.org>
2011-01-26 14:35                                                     ` Josh Boyer
2011-01-26 14:35                                                       ` Josh Boyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.