[PATCH] [RFC] of: unittest: overlay_pci_node: Fix overlay style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Miscellaneous fixes and improvements to the overlay_pci_node:
  - Add missing /plugin/,
  - Convert to sugar syntax,
  - Add missing blank lines between properties and subnodes.

As sugar syntax does not support empty target paths, the test device is
added to /testcase-data/overlay-node instead.

Fixes: 26409dd045892904 ("of: unittest: Add pci_dt_testdrv pci driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
---
RFC, as I don't have a QEMU setup to run the test.
---
 .../of/unittest-data/overlay_pci_node.dtso    | 33 +++++++++----------
 1 file changed, 16 insertions(+), 17 deletions(-)

diff --git a/drivers/of/unittest-data/overlay_pci_node.dtso b/drivers/of/unittest-data/overlay_pci_node.dtso
index c05e52e9e44a9583..f18c9795e6efa5f3 100644
--- a/drivers/of/unittest-data/overlay_pci_node.dtso
+++ b/drivers/of/unittest-data/overlay_pci_node.dtso
@@ -1,22 +1,21 @@
 // SPDX-License-Identifier: GPL-2.0
 /dts-v1/;
-/ {
-	fragment@0 {
-		target-path="";
-		__overlay__ {
-			#address-cells = <3>;
-			#size-cells = <2>;
-			pci-ep-bus@0 {
-				compatible = "simple-bus";
-				#address-cells = <1>;
-				#size-cells = <1>;
-				ranges = <0x0 0x0 0x0 0x0 0x1000>;
-				reg = <0 0 0 0 0>;
-				unittest-pci@100 {
-					compatible = "unittest-pci";
-					reg = <0x100 0x200>;
-				};
-			};
+/plugin/;
+
+&{/testcase-data/overlay-node} {
+	#address-cells = <3>;
+	#size-cells = <2>;
+
+	pci-ep-bus@0 {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0x0 0x0 0x0 0x1000>;
+		reg = <0 0 0 0 0>;
+
+		unittest-pci@100 {
+			compatible = "unittest-pci";
+			reg = <0x100 0x200>;
 		};
 	};
 };
-- 
2.34.1




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux