flash: nand: sort the drivers by alphabetic order

Add comments to require the list of drivers to be kept sorted.

Change-Id: I21b52cc1f5e679b0ebf7797e204248507f53557b
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8948
Tested-by: jenkins
This commit is contained in:
Antonio Borneo
2025-06-14 13:53:50 +02:00
parent fa0fa25764
commit 6ab6d3475f
2 changed files with 7 additions and 5 deletions

View File

@@ -14,20 +14,21 @@
#include "driver.h"
static struct nand_flash_controller *nand_flash_controllers[] = {
&nonce_nand_controller,
// Keep in alphabetic order the list of drivers
&at91sam9_nand_controller,
&davinci_nand_controller,
&imx31_nand_flash_controller,
&lpc3180_nand_controller,
&lpc32xx_nand_controller,
&mxc_nand_flash_controller,
&nonce_nand_controller,
&nuc910_nand_controller,
&orion_nand_controller,
&s3c2410_nand_controller,
&s3c2412_nand_controller,
&s3c2440_nand_controller,
&s3c2443_nand_controller,
&s3c6400_nand_controller,
&mxc_nand_flash_controller,
&imx31_nand_flash_controller,
&at91sam9_nand_controller,
&nuc910_nand_controller,
NULL
};

View File

@@ -89,6 +89,7 @@ typedef int (*nand_driver_walker_t)(struct nand_flash_controller *c, void *);
*/
int nand_driver_walk(nand_driver_walker_t f, void *x);
// Keep in alphabetic order the list of drivers
extern struct nand_flash_controller at91sam9_nand_controller;
extern struct nand_flash_controller davinci_nand_controller;
extern struct nand_flash_controller imx31_nand_flash_controller;