aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2021-12-09 00:15:56 +1000
committerCédric Le Goater <clg@kaod.org>2021-12-09 11:09:01 +0100
commit33da017ae9687ed25903361895140b82a584fa3f (patch)
treef36ade98c05edfe50805307bd6a3a40caada1097 /hw
parent9b85f7d961f21ec482559914e957ba233e29efd2 (diff)
downloadskiboot-33da017ae9687ed25903361895140b82a584fa3f.zip
skiboot-33da017ae9687ed25903361895140b82a584fa3f.tar.gz
skiboot-33da017ae9687ed25903361895140b82a584fa3f.tar.bz2
ccan: switch list_add_before/after arguments to match upstream
Upstream ccan uses (list, existing entry, new entry) parameter ordering rather than (list, new entry, existing entry) ordering. Switch these to make syncing with upstream simpler. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/xscom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xscom.c b/hw/xscom.c
index 298fe0c..530ac95 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -616,7 +616,7 @@ int64_t scom_register(struct scom_controller *new)
}
if (cur->part_id > new->part_id) {
- list_add_before(&scom_list, &new->link, &cur->link);
+ list_add_before(&scom_list, &cur->link, &new->link);
return 0;
}
}