Skip to content

Commit

Permalink
lib: utils/reset: Sort fdt_reset driver list
Browse files Browse the repository at this point in the history
In preparation for adding a new fdt_reset driver, ensure the existing
lists are sorted alphabetically.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
  • Loading branch information
smaeul authored and avpatel committed Sep 14, 2021
1 parent bd35521 commit 0274a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/utils/reset/fdt_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

extern struct fdt_reset fdt_poweroff_gpio;
extern struct fdt_reset fdt_reset_gpio;
extern struct fdt_reset fdt_reset_sifive_test;
extern struct fdt_reset fdt_reset_htif;
extern struct fdt_reset fdt_reset_sifive_test;
extern struct fdt_reset fdt_reset_thead;

static struct fdt_reset *reset_drivers[] = {
&fdt_poweroff_gpio,
&fdt_reset_gpio,
&fdt_reset_sifive_test,
&fdt_reset_htif,
&fdt_reset_sifive_test,
&fdt_reset_thead,
};

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/reset/objects.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
libsbiutils-objs-y += reset/fdt_reset.o
libsbiutils-objs-y += reset/fdt_reset_gpio.o
libsbiutils-objs-y += reset/fdt_reset_htif.o
libsbiutils-objs-y += reset/fdt_reset_sifive_test.o
libsbiutils-objs-y += reset/fdt_reset_thead.o
libsbiutils-objs-y += reset/fdt_reset_thead_asm.o
libsbiutils-objs-y += reset/fdt_reset_sifive_test.o

0 comments on commit 0274a96

Please sign in to comment.