All parsers fetch the information they need without ordering
constraints, so dump all in numerical order. This also makes it
unnecessary to track already dumped blocks.

Signed-off-by: Jani Nikula <[email protected]>
---
 tools/intel_bios_reader.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/tools/intel_bios_reader.c b/tools/intel_bios_reader.c
index fcef4ff43618..94b0d6055eb1 100644
--- a/tools/intel_bios_reader.c
+++ b/tools/intel_bios_reader.c
@@ -1368,13 +1368,8 @@ static void dump_section(struct context *context, int 
section_id)
 {
        struct dumper *dumper = NULL;
        const struct bdb_block *block;
-       static int done[256];
        int i;
 
-       if (done[section_id])
-               return;
-       done[section_id] = 1;
-
        block = find_section(context, section_id);
        if (!block)
                return;
@@ -1571,22 +1566,6 @@ int main(int argc, char **argv)
                context.panel_type = 0;
        }
 
-       dump_section(&context, BDB_GENERAL_FEATURES);
-       dump_section(&context, BDB_GENERAL_DEFINITIONS);
-       dump_section(&context, BDB_CHILD_DEVICE_TABLE);
-       dump_section(&context, BDB_LVDS_OPTIONS);
-       dump_section(&context, BDB_LVDS_LFP_DATA_PTRS);
-       dump_section(&context, BDB_LVDS_LFP_DATA);
-       dump_section(&context, BDB_LVDS_BACKLIGHT);
-
-       dump_section(&context, BDB_SDVO_LVDS_OPTIONS);
-       dump_section(&context, BDB_SDVO_PANEL_DTDS);
-
-       dump_section(&context, BDB_DRIVER_FEATURES);
-       dump_section(&context, BDB_EDP);
-       dump_section(&context, BDB_MIPI_CONFIG);
-       dump_section(&context, BDB_MIPI_SEQUENCE);
-
        for (i = 0; i < 256; i++)
                dump_section(&context, i);
 
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to