commit | 37f815cad07d78bfa9ec99e6612344319dca8c3f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Dec 18 14:54:34 2021 -0700 |
committer | Tom Rini <trini@konsulko.com> | Mon Jan 24 17:36:30 2022 -0500 |
tree | 8ad42ad0fdebf5d0fc0d9ff65a4ace95f93dc32b | |
parent | 2fd85bd3263966dee1c4a913c457d1000a52de48 [diff] |
moveconfig: Use a function to read files At present there is quite a bit of ad-hoc code reading from files. The most common case is to read the file as lines. Put it in a function and set the unicode encoding correctly. Avoid writing back to a file when there are obviously no changes as this speeds things up slightly. Signed-off-by: Simon Glass <sjg@chromium.org>