* [PATCH] dt-bindings: nvmem: Correct indentation and style in DTS example
@ 2025-03-24 12:52 Krzysztof Kozlowski
2025-03-24 20:24 ` Rob Herring (Arm)
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-24 12:52 UTC (permalink / raw)
To: Srinivas Kandagatla, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiko Stuebner, Nicolas Saenz Julienne, devicetree,
linux-kernel, linux-arm-kernel, linux-rockchip
Cc: Krzysztof Kozlowski
DTS example in the bindings should be indented with 2- or 4-spaces and
aligned with opening '- |', so correct any differences like 3-spaces or
mixtures 2- and 4-spaces in one binding. While re-indenting, drop
unused labels.
No functional changes here, but saves some comments during reviews of
new patches built on existing code.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/nvmem/nvmem.yaml | 60 +++++++++----------
.../devicetree/bindings/nvmem/rmem.yaml | 20 +++----
.../bindings/nvmem/rockchip-efuse.yaml | 20 +++----
3 files changed, 50 insertions(+), 50 deletions(-)
diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
index 4fd015d402ce..c24e3667accd 100644
--- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml
+++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
@@ -50,43 +50,43 @@ additionalProperties: true
examples:
- |
- #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/gpio/gpio.h>
- qfprom: eeprom@700000 {
- compatible = "qcom,msm8974-qfprom", "qcom,qfprom";
- #address-cells = <1>;
- #size-cells = <1>;
- reg = <0x00700000 0x100000>;
+ qfprom: eeprom@700000 {
+ compatible = "qcom,msm8974-qfprom", "qcom,qfprom";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reg = <0x00700000 0x100000>;
- wp-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+ wp-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
- /* ... */
+ /* ... */
- nvmem-layout {
- compatible = "fixed-layout";
- #address-cells = <1>;
- #size-cells = <1>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- /* Data cells */
- tsens_calibration: calib@404 {
- reg = <0x404 0x10>;
- };
+ /* Data cells */
+ tsens_calibration: calib@404 {
+ reg = <0x404 0x10>;
+ };
- tsens_calibration_bckp: calib_bckp@504 {
- reg = <0x504 0x11>;
- bits = <6 128>;
- };
+ tsens_calibration_bckp: calib_bckp@504 {
+ reg = <0x504 0x11>;
+ bits = <6 128>;
+ };
- pvs_version: pvs-version@6 {
- reg = <0x6 0x2>;
- bits = <7 2>;
- };
+ pvs_version: pvs-version@6 {
+ reg = <0x6 0x2>;
+ bits = <7 2>;
+ };
- speed_bin: speed-bin@c{
- reg = <0xc 0x1>;
- bits = <2 3>;
- };
- };
- };
+ speed_bin: speed-bin@c{
+ reg = <0xc 0x1>;
+ bits = <2 3>;
+ };
+ };
+ };
...
diff --git a/Documentation/devicetree/bindings/nvmem/rmem.yaml b/Documentation/devicetree/bindings/nvmem/rmem.yaml
index 85f9f5de3906..dc714309e7b9 100644
--- a/Documentation/devicetree/bindings/nvmem/rmem.yaml
+++ b/Documentation/devicetree/bindings/nvmem/rmem.yaml
@@ -38,17 +38,17 @@ unevaluatedProperties: false
examples:
- |
- reserved-memory {
- #address-cells = <1>;
- #size-cells = <1>;
+ reserved-memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
- blconfig: nvram@10000000 {
- compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
- #address-cells = <1>;
- #size-cells = <1>;
- reg = <0x10000000 0x1000>;
- no-map;
- };
+ nvram@10000000 {
+ compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reg = <0x10000000 0x1000>;
+ no-map;
};
+ };
...
diff --git a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.yaml b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.yaml
index b80fd8d1ae5b..aa93ebc41a8e 100644
--- a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.yaml
+++ b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.yaml
@@ -58,16 +58,16 @@ examples:
- |
#include <dt-bindings/clock/rk3288-cru.h>
efuse: efuse@ffb40000 {
- compatible = "rockchip,rk3288-efuse";
- reg = <0xffb40000 0x20>;
- #address-cells = <1>;
- #size-cells = <1>;
- clocks = <&cru PCLK_EFUSE256>;
- clock-names = "pclk_efuse";
+ compatible = "rockchip,rk3288-efuse";
+ reg = <0xffb40000 0x20>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ clocks = <&cru PCLK_EFUSE256>;
+ clock-names = "pclk_efuse";
- /* Data cells */
- cpu_leakage: cpu_leakage@17 {
- reg = <0x17 0x1>;
- };
+ /* Data cells */
+ cpu_leakage@17 {
+ reg = <0x17 0x1>;
+ };
};
...
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: nvmem: Correct indentation and style in DTS example
2025-03-24 12:52 [PATCH] dt-bindings: nvmem: Correct indentation and style in DTS example Krzysztof Kozlowski
@ 2025-03-24 20:24 ` Rob Herring (Arm)
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring (Arm) @ 2025-03-24 20:24 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Nicolas Saenz Julienne, linux-arm-kernel, Krzysztof Kozlowski,
linux-kernel, devicetree, Conor Dooley, Heiko Stuebner,
Srinivas Kandagatla, linux-rockchip
On Mon, 24 Mar 2025 13:52:14 +0100, Krzysztof Kozlowski wrote:
> DTS example in the bindings should be indented with 2- or 4-spaces and
> aligned with opening '- |', so correct any differences like 3-spaces or
> mixtures 2- and 4-spaces in one binding. While re-indenting, drop
> unused labels.
>
> No functional changes here, but saves some comments during reviews of
> new patches built on existing code.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/nvmem/nvmem.yaml | 60 +++++++++----------
> .../devicetree/bindings/nvmem/rmem.yaml | 20 +++----
> .../bindings/nvmem/rockchip-efuse.yaml | 20 +++----
> 3 files changed, 50 insertions(+), 50 deletions(-)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-24 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-24 12:52 [PATCH] dt-bindings: nvmem: Correct indentation and style in DTS example Krzysztof Kozlowski
2025-03-24 20:24 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox