X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fmflash.c;h=7696f0d8919f9444e8050cc12523e2c88f95141c;hp=84ad3a8ade3e6d1b9830b2c20ff4eb5efaac5b59;hb=fc01dd6a13167c33491b9ccc1543d34b2e485c32;hpb=a043632a529c0b98bb8771c8815e7681e4ed0f12 diff --git a/src/flash/mflash.c b/src/flash/mflash.c index 84ad3a8ade..7696f0d891 100644 --- a/src/flash/mflash.c +++ b/src/flash/mflash.c @@ -36,19 +36,19 @@ static command_t *mflash_cmd; static mflash_bank_t *mflash_bank; -static mflash_gpio_drv_t pxa270_gpio = { +static struct mflash_gpio_drv pxa270_gpio = { .name = "pxa270", .set_gpio_to_output = pxa270_set_gpio_to_output, .set_gpio_output_val = pxa270_set_gpio_output_val }; -static mflash_gpio_drv_t s3c2440_gpio = { +static struct mflash_gpio_drv s3c2440_gpio = { .name = "s3c2440", .set_gpio_to_output = s3c2440_set_gpio_to_output, .set_gpio_output_val = s3c2440_set_gpio_output_val }; -static mflash_gpio_drv_t *mflash_gpio[] = +static struct mflash_gpio_drv *mflash_gpio[] = { &pxa270_gpio, &s3c2440_gpio, @@ -199,7 +199,7 @@ static int mg_hdrst(uint8_t level) static int mg_init_gpio (void) { int ret; - mflash_gpio_drv_t *gpio_drv = mflash_bank->gpio_drv; + struct mflash_gpio_drv *gpio_drv = mflash_bank->gpio_drv; ret = gpio_drv->set_gpio_to_output(mflash_bank->rst_pin); if (ret != ERROR_OK)