]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
docs: dt: unittest: Correct SELFTEST to UNITTEST
authorDirk Behme <dirk.behme@de.bosch.com>
Tue, 29 Oct 2024 05:40:41 +0000 (06:40 +0100)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 3 Jan 2025 21:25:56 +0000 (15:25 -0600)
The Kconfig switch is CONFIG_OF_UNITTEST. Not OF_SELFTEST.
Correct this.

While at it replace the outdated file list with a link to the
directory as proposed by Rob Herring.

Cc: Gaurav Minocha <gaurav.minocha.os@gmail.com>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Link: https://lore.kernel.org/r/20241029054042.958775-1-dirk.behme@de.bosch.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/of_unittest.rst
Documentation/translations/zh_CN/devicetree/of_unittest.rst

index 8864b52d11954be03a2b9910ef6551363a665102..a6c05962add3f15c648d37035808aaf758497962 100644 (file)
@@ -50,15 +50,13 @@ from 'scripts/dtc/of_unittest_expect --help'.
 
 The Device Tree Source file (drivers/of/unittest-data/testcases.dts) contains
 the test data required for executing the unit tests automated in
-drivers/of/unittest.c. Currently, following Device Tree Source Include files
-(.dtsi) are included in testcases.dts::
+drivers/of/unittest.c. See the content of the folder::
 
-    drivers/of/unittest-data/tests-interrupts.dtsi
-    drivers/of/unittest-data/tests-platform.dtsi
-    drivers/of/unittest-data/tests-phandle.dtsi
-    drivers/of/unittest-data/tests-match.dtsi
+    drivers/of/unittest-data/tests-*.dtsi
 
-When the kernel is build with OF_SELFTEST enabled, then the following make
+for the Device Tree Source Include files (.dtsi) included in testcases.dts.
+
+When the kernel is build with CONFIG_OF_UNITTEST enabled, then the following make
 rule::
 
     $(obj)/%.dtb: $(src)/%.dts FORCE
index 11eb08ca8866914450a684401a8dccde0b9b4b35..5c1a8e0cfd1603ca2068cbd0a6f8f5244379df83 100644 (file)
@@ -40,7 +40,7 @@ OF Selftest被设计用来测试提供给设备驱动开发者的接口(includ
     drivers/of/unittest-data/tests-phandle.dtsi
     drivers/of/unittest-data/tests-match.dtsi
 
-当内核在启用OF_SELFTEST的情况下被构建时,那么下面的make规则::
+当内核在启用CONFIG_OF_UNITTEST的情况下被构建时,那么下面的make规则::
 
     $(obj)/%.dtb: $(src)/%.dts FORCE
            $(call if_changed_dep, dtc)