]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: cosmetic: refactor `nxp_imx8mcst' etype code
authorBrian Ruley <brian.ruley@gehealthcare.com>
Tue, 1 Oct 2024 13:58:08 +0000 (16:58 +0300)
committerFabio Estevam <festevam@denx.de>
Sun, 13 Oct 2024 12:44:00 +0000 (09:44 -0300)
commit784f84d5d81d534a20f327d04693e7b8b7594858
treea1944294a08d784c9de0a996370516c6487556ec
parente612d5c2b240f05f4ca458d66a8c4559d47f2967
binman: cosmetic: refactor `nxp_imx8mcst' etype code

Simplify code and conform to the style guide used in the project by
making the following changes:
* Capitalize global constants
* Use single quotes for multiline strings (except docstrings)
* Fix line width to 79 cols
* Use f-string instead of formatting a regular string or using a
  complicated concatenation
* Move common suffix used in keys to a global variable "KEY_NAME"
  to reduce the likelihood of typos and making future changes
  easier

Signed-off-by: Brian Ruley <brian.ruley@gehealthcare.com>
Cc: Marek Vasut <marex@denx.de>
tools/binman/etype/nxp_imx8mcst.py