coreboot-kgpe-d16/util/sconfig
Nico Huber d09459fe30 util/sconfig: Refactor and fix add_register()
add_register() contained a duplicate check but only compared the new
key to the first (smallest in order) list member. Fix that and factor
the list handling out so it can be used by other functions.

Change-Id: I5a8346f36fa024351e1282c9681868ecf451b283
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41743
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-06-02 07:20:12 +00:00
..
Makefile.inc commonlib: Add commonlib/bsd 2020-01-28 06:36:13 +00:00
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
lex.yy.c_shipped util/sconfig: Add LPC and ESPI buses 2020-05-12 20:12:17 +00:00
main.c util/sconfig: Refactor and fix add_register() 2020-06-02 07:20:12 +00:00
sconfig.h util/: Replace GPLv2 boiler plate with SPDX header 2020-05-09 21:22:08 +00:00
sconfig.l util/sconfig: Add LPC and ESPI buses 2020-05-12 20:12:17 +00:00
sconfig.tab.c_shipped util/sconfig: Add LPC and ESPI buses 2020-05-12 20:12:17 +00:00
sconfig.tab.h_shipped util/sconfig: Add LPC and ESPI buses 2020-05-12 20:12:17 +00:00
sconfig.y util/sconfig: Add LPC and ESPI buses 2020-05-12 20:12:17 +00:00