mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 11:05:07 +07:00
9977a8c349
Improve the DTS files by removing all the leading "0x" and zeros to fix the
following dtc warnings:
Warning (unit_address_format): Node /XXX unit name should not have leading "0x"
and
Warning (unit_address_format): Node /XXX unit name should not have leading 0s
Converted using the following command:
find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -E -i -e "s/@0x([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" -e "s/@0+([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" {} +
For simplicity, two sed expressions were used to solve each warnings separately.
To make the regex expression more robust a few other issues were resolved,
namely setting unit-address to lower case, and adding a whitespace before the
the opening curly brace:
https://elinux.org/Device_Tree_Linux#Linux_conventions
This is a follow up to commit
|
||
---|---|---|
.. | ||
Makefile | ||
mt2712-evb.dts | ||
mt2712e.dtsi | ||
mt6755-evb.dts | ||
mt6755.dtsi | ||
mt6795-evb.dts | ||
mt6795.dtsi | ||
mt6797-evb.dts | ||
mt6797.dtsi | ||
mt7622-rfb1.dts | ||
mt7622.dtsi | ||
mt8173-evb.dts | ||
mt8173-pinfunc.h | ||
mt8173.dtsi |