diff options
author | Andreas Färber <afaerber@suse.de> | 2016-04-17 17:36:25 +0200 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2016-05-05 07:26:38 +0100 |
commit | 2745e42ec192c02ad64b61cab136038f4c8b2f48 (patch) | |
tree | 33f36f7033c47a3cef4ed0cfcf72b3a5717934c9 /src/flash/nor/drivers.c | |
parent | 0534a5e0abf979072f6342f8adc691b81024b209 (diff) | |
download | riscv-openocd-2745e42ec192c02ad64b61cab136038f4c8b2f48.zip riscv-openocd-2745e42ec192c02ad64b61cab136038f4c8b2f48.tar.gz riscv-openocd-2745e42ec192c02ad64b61cab136038f4c8b2f48.tar.bz2 |
flash/nor: Reorder drivers alphabetically
To avoid conflicts between flash drivers being added, consistently use
an alphabetical sort order for the three places new drivers get added:
* Makefile.am NOR_DRIVERS (note: automake disallows a trailing backslash)
* drivers.c struct flash_driver forward declarations
* drivers.c flash_drivers array
Change-Id: Idcd6a8e12821ef10958a6b3ad7bac0dc63cadd08
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-on: http://openocd.zylin.com/3417
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/flash/nor/drivers.c')
-rw-r--r-- | src/flash/nor/drivers.c | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/src/flash/nor/drivers.c b/src/flash/nor/drivers.c index 1f39c14..51a4018 100644 --- a/src/flash/nor/drivers.c +++ b/src/flash/nor/drivers.c @@ -22,100 +22,100 @@ #endif #include "imp.h" -extern struct flash_driver lpc2000_flash; -extern struct flash_driver lpc288x_flash; -extern struct flash_driver lpc2900_flash; -extern struct flash_driver lpcspifi_flash; -extern struct flash_driver cfi_flash; +extern struct flash_driver aduc702x_flash; +extern struct flash_driver aducm360_flash; extern struct flash_driver at91sam3_flash; extern struct flash_driver at91sam4_flash; extern struct flash_driver at91sam4l_flash; -extern struct flash_driver at91samd_flash; extern struct flash_driver at91sam7_flash; +extern struct flash_driver at91samd_flash; extern struct flash_driver atsamv_flash; -extern struct flash_driver str7x_flash; -extern struct flash_driver str9x_flash; -extern struct flash_driver aduc702x_flash; -extern struct flash_driver aducm360_flash; -extern struct flash_driver stellaris_flash; -extern struct flash_driver str9xpec_flash; -extern struct flash_driver stm32f1x_flash; -extern struct flash_driver stm32f2x_flash; -extern struct flash_driver stm32lx_flash; -extern struct flash_driver stm32l4x_flash; -extern struct flash_driver tms470_flash; -extern struct flash_driver ocl_flash; -extern struct flash_driver pic32mx_flash; extern struct flash_driver avr_flash; -extern struct flash_driver faux_flash; -extern struct flash_driver virtual_flash; -extern struct flash_driver stmsmi_flash; -extern struct flash_driver em357_flash; +extern struct flash_driver cfi_flash; extern struct flash_driver dsp5680xx_flash; +extern struct flash_driver efm32_flash; +extern struct flash_driver em357_flash; +extern struct flash_driver faux_flash; extern struct flash_driver fm3_flash; extern struct flash_driver fm4_flash; +extern struct flash_driver jtagspi_flash; extern struct flash_driver kinetis_flash; extern struct flash_driver kinetis_ke_flash; -extern struct flash_driver efm32_flash; +extern struct flash_driver lpc2000_flash; +extern struct flash_driver lpc288x_flash; +extern struct flash_driver lpc2900_flash; +extern struct flash_driver lpcspifi_flash; extern struct flash_driver mdr_flash; -extern struct flash_driver numicro_flash; -extern struct flash_driver nrf51_flash; extern struct flash_driver mrvlqspi_flash; +extern struct flash_driver niietcm4_flash; +extern struct flash_driver nrf51_flash; +extern struct flash_driver numicro_flash; +extern struct flash_driver ocl_flash; +extern struct flash_driver pic32mx_flash; extern struct flash_driver psoc4_flash; extern struct flash_driver sim3x_flash; -extern struct flash_driver jtagspi_flash; +extern struct flash_driver stellaris_flash; +extern struct flash_driver stm32f1x_flash; +extern struct flash_driver stm32f2x_flash; +extern struct flash_driver stm32lx_flash; +extern struct flash_driver stm32l4x_flash; +extern struct flash_driver stmsmi_flash; +extern struct flash_driver str7x_flash; +extern struct flash_driver str9x_flash; +extern struct flash_driver str9xpec_flash; +extern struct flash_driver tms470_flash; +extern struct flash_driver virtual_flash; extern struct flash_driver xmc4xxx_flash; -extern struct flash_driver niietcm4_flash; /** * The list of built-in flash drivers. * @todo Make this dynamically extendable with loadable modules. */ static struct flash_driver *flash_drivers[] = { - &lpc2000_flash, - &lpc288x_flash, - &lpc2900_flash, - &lpcspifi_flash, - &cfi_flash, - &at91sam7_flash, + &aduc702x_flash, + &aducm360_flash, &at91sam3_flash, &at91sam4_flash, &at91sam4l_flash, + &at91sam7_flash, &at91samd_flash, &atsamv_flash, - &str7x_flash, - &str9x_flash, - &aduc702x_flash, - &aducm360_flash, - &stellaris_flash, - &str9xpec_flash, - &stm32f1x_flash, - &stm32f2x_flash, - &stm32lx_flash, - &stm32l4x_flash, - &tms470_flash, - &ocl_flash, - &pic32mx_flash, &avr_flash, - &faux_flash, - &virtual_flash, - &stmsmi_flash, + &cfi_flash, + &dsp5680xx_flash, + &efm32_flash, &em357_flash, + &faux_flash, &fm3_flash, &fm4_flash, - &dsp5680xx_flash, + &jtagspi_flash, &kinetis_flash, &kinetis_ke_flash, - &efm32_flash, + &lpc2000_flash, + &lpc288x_flash, + &lpc2900_flash, + &lpcspifi_flash, &mdr_flash, - &numicro_flash, - &nrf51_flash, &mrvlqspi_flash, + &niietcm4_flash, + &nrf51_flash, + &numicro_flash, + &ocl_flash, + &pic32mx_flash, &psoc4_flash, &sim3x_flash, - &jtagspi_flash, + &stellaris_flash, + &stm32f1x_flash, + &stm32f2x_flash, + &stm32lx_flash, + &stm32l4x_flash, + &stmsmi_flash, + &str7x_flash, + &str9x_flash, + &str9xpec_flash, + &tms470_flash, + &virtual_flash, &xmc4xxx_flash, - &niietcm4_flash, NULL, }; |