]> git.sur5r.net Git - openocd/commitdiff
nand_flash_controller_t -> struct nand_flash_controller
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 15:38:30 +0000 (07:38 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:07 +0000 (11:58 -0800)
Remove misleading typedef and redundant suffix from struct nand_flash_controller.

src/flash/davinci_nand.c
src/flash/lpc3180_nand_controller.c
src/flash/mx3_nand.c
src/flash/nand.c
src/flash/nand.h
src/flash/orion_nand.c
src/flash/s3c2410_nand.c
src/flash/s3c2412_nand.c
src/flash/s3c2440_nand.c
src/flash/s3c2443_nand.c

index b3164abfc7947e27b769bbf2bea0967e991d5009..d4c161975b319f03e0b4bc816313f3fe62f50112 100644 (file)
@@ -744,7 +744,7 @@ fail:
        return ERROR_NAND_OPERATION_FAILED;
 }
 
-nand_flash_controller_t davinci_nand_controller = {
+struct nand_flash_controller davinci_nand_controller = {
        .name                   = "davinci",
        .nand_device_command    = davinci_nand_device_command,
        .register_commands      = davinci_register_commands,
index 319858cb27530c34bfce4181d2cb76c1c2406087..016fa70cbf5c82d45c75eed939d6733782ba4fec 100644 (file)
@@ -882,7 +882,7 @@ static int lpc3180_register_commands(struct command_context_s *cmd_ctx)
        return ERROR_OK;
 }
 
-nand_flash_controller_t lpc3180_nand_controller = {
+struct nand_flash_controller lpc3180_nand_controller = {
                .name = "lpc3180",
                .nand_device_command = lpc3180_nand_device_command,
                .register_commands = lpc3180_register_commands,
index bce7aa8f3ea325edf59d2af886909f5c06999927..531111660f2c9a0fae694dabea8192ed700796fd 100644 (file)
@@ -868,7 +868,7 @@ static int do_data_output (struct nand_device_s *nand)
        return ERROR_OK;
 }
 
-nand_flash_controller_t imx31_nand_flash_controller = {
+struct nand_flash_controller imx31_nand_flash_controller = {
                .name = "imx31",
                .nand_device_command = &imx31_nand_device_command,
                .register_commands = &imx31_register_commands,
index 44207a823c91cae6c40ad201536d4db5c1ef7793..1249327ae03788f5993cd70e8b85c7f75e1f86d4 100644 (file)
@@ -35,18 +35,18 @@ static int nand_write_page(struct nand_device_s *nand, uint32_t page, uint8_t *d
 
 /* NAND flash controller
  */
-extern nand_flash_controller_t davinci_nand_controller;
-extern nand_flash_controller_t lpc3180_nand_controller;
-extern nand_flash_controller_t orion_nand_controller;
-extern nand_flash_controller_t s3c2410_nand_controller;
-extern nand_flash_controller_t s3c2412_nand_controller;
-extern nand_flash_controller_t s3c2440_nand_controller;
-extern nand_flash_controller_t s3c2443_nand_controller;
-extern nand_flash_controller_t imx31_nand_flash_controller;
-
-/* extern nand_flash_controller_t boundary_scan_nand_controller; */
-
-static nand_flash_controller_t *nand_flash_controllers[] =
+extern struct nand_flash_controller davinci_nand_controller;
+extern struct nand_flash_controller lpc3180_nand_controller;
+extern struct nand_flash_controller orion_nand_controller;
+extern struct nand_flash_controller s3c2410_nand_controller;
+extern struct nand_flash_controller s3c2412_nand_controller;
+extern struct nand_flash_controller s3c2440_nand_controller;
+extern struct nand_flash_controller s3c2443_nand_controller;
+extern struct nand_flash_controller imx31_nand_flash_controller;
+
+/* extern struct nand_flash_controller boundary_scan_nand_controller; */
+
+static struct nand_flash_controller *nand_flash_controllers[] =
 {
        &davinci_nand_controller,
        &lpc3180_nand_controller,
index 57076d54857880d7f404dab59e3b1d61342a06a8..ce7ed9df481e1c45b9798cc6f377bdea5a1d10b9 100644 (file)
@@ -32,7 +32,7 @@ struct nand_device_s;
 #define __NAND_DEVICE_COMMAND(name) \
                COMMAND_HELPER(name, struct nand_device_s *nand)
 
-typedef struct nand_flash_controller_s
+struct nand_flash_controller
 {
        char *name;
        __NAND_DEVICE_COMMAND((*nand_device_command));
@@ -49,7 +49,7 @@ typedef struct nand_flash_controller_s
        int (*read_page)(struct nand_device_s *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size);
        int (*controller_ready)(struct nand_device_s *nand, int timeout);
        int (*nand_ready)(struct nand_device_s *nand, int timeout);
-} nand_flash_controller_t;
+};
 
 #define NAND_DEVICE_COMMAND_HANDLER(name) static __NAND_DEVICE_COMMAND(name)
 
@@ -75,7 +75,7 @@ typedef struct nand_ecclayout_s {
 
 typedef struct nand_device_s
 {
-       nand_flash_controller_t *controller;
+       struct nand_flash_controller *controller;
        void *controller_priv;
        struct nand_manufacturer_s *manufacturer;
        struct nand_info_s *device;
index b112c9e3dc066e777a17564df13d261675caa882..03280c18997c5ec23cc9a60baa23c02725d227f5 100644 (file)
@@ -169,7 +169,7 @@ static int orion_nand_init(struct nand_device_s *nand)
        return ERROR_OK;
 }
 
-nand_flash_controller_t orion_nand_controller =
+struct nand_flash_controller orion_nand_controller =
 {
        .name                   = "orion",
        .command                = orion_nand_command,
index 5badf1a4af8f670365b3f6ce16f36a8a372123d5..c57fe9369ed073381e5731a9a928dc6195ed1011 100644 (file)
@@ -107,7 +107,7 @@ static int s3c2410_nand_ready(struct nand_device_s *nand, int timeout)
        return 0;
 }
 
-nand_flash_controller_t s3c2410_nand_controller = {
+struct nand_flash_controller s3c2410_nand_controller = {
                .name = "s3c2410",
                .nand_device_command = &s3c2410_nand_device_command,
                .register_commands = &s3c24xx_register_commands,
index 958f013d059842f2e74bcb5ca8c8ed7abcb53bbb..b41705dc44f579e3afb65ba063930a751c859e01 100644 (file)
@@ -61,7 +61,7 @@ static int s3c2412_init(struct nand_device_s *nand)
        return ERROR_OK;
 }
 
-nand_flash_controller_t s3c2412_nand_controller = {
+struct nand_flash_controller s3c2412_nand_controller = {
                .name = "s3c2412",
                .nand_device_command = &s3c2412_nand_device_command,
                .register_commands = &s3c24xx_register_commands,
index 80020f63def9ed1601f1f34f4554cec7834c8b57..8c056878080844ee295816d30d95f0b699407c38 100644 (file)
@@ -153,7 +153,7 @@ int s3c2440_write_block_data(struct nand_device_s *nand, uint8_t *data, int data
        return ERROR_OK;
 }
 
-nand_flash_controller_t s3c2440_nand_controller = {
+struct nand_flash_controller s3c2440_nand_controller = {
                .name = "s3c2440",
                .nand_device_command = &s3c2440_nand_device_command,
                .register_commands = &s3c24xx_register_commands,
index af7d9a9aa01ce9050070f31fc351bcadf58d558a..30549f6b7d414d4e8e3facda792d0d1abf69084e 100644 (file)
@@ -62,7 +62,7 @@ static int s3c2443_init(struct nand_device_s *nand)
        return ERROR_OK;
 }
 
-nand_flash_controller_t s3c2443_nand_controller = {
+struct nand_flash_controller s3c2443_nand_controller = {
                .name = "s3c2443",
                .nand_device_command = &s3c2443_nand_device_command,
                .register_commands = &s3c24xx_register_commands,