Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[review] drivers: regulator: print regulator tree summary
Beautify (IMHO) the regulator tree: - remove empty lines between root supplies. They are now prefixed with indentation string "o- "; - prevent bars '|' when last node of a supply was already printed - use `-- for last supplied of a supply and |-- otherwise. For example, the below tree: I/TC: Regulator tree summary I/TC: I/TC: vin (...) I/TC: +-- vdd_sd (...) I/TC: +-- vdd_usb (...) I/TC: | +-- usb33 (...) I/TC: | | +-- usb33_io (...) I/TC: +-- vdd_adc (...) I/TC: +-- vddcore (...) I/TC: +-- vdd (...) I/TC: | +-- reg11 (...) I/TC: | +-- reg18 (...) I/TC: I/TC: v3v3_ao (...) I/TC: +-- v3v3_sw (...) I/TC: is now printed as: I/TC: Regulator tree summary I/TC: I/TC: o- vin (...) I/TC: |-- vdd_sd (...) I/TC: |-- vdd_usb (...) I/TC: | `-- usb33 (...) I/TC: | `-- usb33_io (...) I/TC: |-- vdd_adc (...) I/TC: |-- vddcore (...) I/TC: `-- vdd (...) I/TC: |-- reg11 (...) I/TC: `-- reg18 (...) I/TC: I/TC: o- v3v3_ao (...) I/TC: `-- v3v3_sw (...) I/TC: Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
- Loading branch information