dtoc: Move main program into its own function
authorSimon Glass <sjg@chromium.org>
Sun, 31 Jul 2022 02:57:08 +0000 (20:57 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Aug 2022 17:55:41 +0000 (11:55 -0600)
commita8ad9aacd34cc1fd1dc7c0c8703c9467d76676b9
treece8fa06f8821b0be1180a5d24b277539e101bb4e
parentad744222f59e765ef9d6ee7efa2ee670a4ebd06d
dtoc: Move main program into its own function

Use a function for the main program so everything there doesn't look like
a global variable to pylint.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/test_fdt.py