Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: dt: unittest: Correct SELFTEST to UNITTEST

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>

authored by

Dirk Behme and committed by
Rob Herring (Arm)
51ce1cd6 208a55c4

+6 -8
+5 -7
Documentation/devicetree/of_unittest.rst
··· 50 50 51 51 The Device Tree Source file (drivers/of/unittest-data/testcases.dts) contains 52 52 the test data required for executing the unit tests automated in 53 - drivers/of/unittest.c. Currently, following Device Tree Source Include files 54 - (.dtsi) are included in testcases.dts:: 53 + drivers/of/unittest.c. See the content of the folder:: 55 54 56 - drivers/of/unittest-data/tests-interrupts.dtsi 57 - drivers/of/unittest-data/tests-platform.dtsi 58 - drivers/of/unittest-data/tests-phandle.dtsi 59 - drivers/of/unittest-data/tests-match.dtsi 55 + drivers/of/unittest-data/tests-*.dtsi 60 56 61 - When the kernel is build with OF_SELFTEST enabled, then the following make 57 + for the Device Tree Source Include files (.dtsi) included in testcases.dts. 58 + 59 + When the kernel is build with CONFIG_OF_UNITTEST enabled, then the following make 62 60 rule:: 63 61 64 62 $(obj)/%.dtb: $(src)/%.dts FORCE
+1 -1
Documentation/translations/zh_CN/devicetree/of_unittest.rst
··· 40 40 drivers/of/unittest-data/tests-phandle.dtsi 41 41 drivers/of/unittest-data/tests-match.dtsi 42 42 43 - 当内核在启用OF_SELFTEST的情况下被构建时,那么下面的make规则:: 43 + 当内核在启用CONFIG_OF_UNITTEST的情况下被构建时,那么下面的make规则:: 44 44 45 45 $(obj)/%.dtb: $(src)/%.dts FORCE 46 46 $(call if_changed_dep, dtc)