浏览代码

of/unittest: Rename selftest.c to unittest.c

This is unit testing code. It should use that name because it makes more
sense than 'selftest'. Rename the files to match and rename the config
variable.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Grant Likely 10 年之前
父节点
当前提交
19fd74879a

+ 2 - 2
drivers/of/Kconfig

@@ -7,8 +7,8 @@ config OF
 menu "Device Tree and Open Firmware support"
 	depends on OF
 
-config OF_SELFTEST
-	bool "Device Tree Runtime self tests"
+config OF_UNITTEST
+	bool "Device Tree runtime unit tests"
 	depends on OF_IRQ && OF_EARLY_FLATTREE
 	select OF_DYNAMIC
 	select OF_RESOLVE

+ 2 - 2
drivers/of/Makefile

@@ -6,8 +6,8 @@ obj-$(CONFIG_OF_PROMTREE) += pdt.o
 obj-$(CONFIG_OF_ADDRESS)  += address.o
 obj-$(CONFIG_OF_IRQ)    += irq.o
 obj-$(CONFIG_OF_NET)	+= of_net.o
-obj-$(CONFIG_OF_SELFTEST) += of_selftest.o
-of_selftest-objs := selftest.o testcase-data/testcases.dtb.o
+obj-$(CONFIG_OF_UNITTEST) += of_unittest.o
+of_unittest-objs := unittest.o unittest-data/testcases.dtb.o
 obj-$(CONFIG_OF_MDIO)	+= of_mdio.o
 obj-$(CONFIG_OF_PCI)	+= of_pci.o
 obj-$(CONFIG_OF_PCI_IRQ)  += of_pci_irq.o

+ 0 - 0
drivers/of/testcase-data/testcases.dts → drivers/of/unittest-data/testcases.dts


+ 0 - 0
drivers/of/testcase-data/tests-interrupts.dtsi → drivers/of/unittest-data/tests-interrupts.dtsi


+ 0 - 0
drivers/of/testcase-data/tests-match.dtsi → drivers/of/unittest-data/tests-match.dtsi


+ 0 - 0
drivers/of/testcase-data/tests-phandle.dtsi → drivers/of/unittest-data/tests-phandle.dtsi


+ 0 - 0
drivers/of/testcase-data/tests-platform.dtsi → drivers/of/unittest-data/tests-platform.dtsi


+ 0 - 0
drivers/of/selftest.c → drivers/of/unittest.c