From 19fd74879a32fb10357e0cda9c8050f01bb3eeb8 Mon Sep 17 00:00:00 2001 From: Grant Likely Date: Tue, 4 Nov 2014 13:24:45 +0000 Subject: [PATCH] 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 --- drivers/of/Kconfig | 4 ++-- drivers/of/Makefile | 4 ++-- drivers/of/{testcase-data => unittest-data}/testcases.dts | 0 .../of/{testcase-data => unittest-data}/tests-interrupts.dtsi | 0 drivers/of/{testcase-data => unittest-data}/tests-match.dtsi | 0 .../of/{testcase-data => unittest-data}/tests-phandle.dtsi | 0 .../of/{testcase-data => unittest-data}/tests-platform.dtsi | 0 drivers/of/{selftest.c => unittest.c} | 0 8 files changed, 4 insertions(+), 4 deletions(-) rename drivers/of/{testcase-data => unittest-data}/testcases.dts (100%) rename drivers/of/{testcase-data => unittest-data}/tests-interrupts.dtsi (100%) rename drivers/of/{testcase-data => unittest-data}/tests-match.dtsi (100%) rename drivers/of/{testcase-data => unittest-data}/tests-phandle.dtsi (100%) rename drivers/of/{testcase-data => unittest-data}/tests-platform.dtsi (100%) rename drivers/of/{selftest.c => unittest.c} (100%) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 1a13f5b722c5..be16ce2ffd69 100644 --- a/drivers/of/Kconfig +++ b/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 diff --git a/drivers/of/Makefile b/drivers/of/Makefile index ca9209ce50cd..d90553fcd37f 100644 --- a/drivers/of/Makefile +++ b/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 diff --git a/drivers/of/testcase-data/testcases.dts b/drivers/of/unittest-data/testcases.dts similarity index 100% rename from drivers/of/testcase-data/testcases.dts rename to drivers/of/unittest-data/testcases.dts diff --git a/drivers/of/testcase-data/tests-interrupts.dtsi b/drivers/of/unittest-data/tests-interrupts.dtsi similarity index 100% rename from drivers/of/testcase-data/tests-interrupts.dtsi rename to drivers/of/unittest-data/tests-interrupts.dtsi diff --git a/drivers/of/testcase-data/tests-match.dtsi b/drivers/of/unittest-data/tests-match.dtsi similarity index 100% rename from drivers/of/testcase-data/tests-match.dtsi rename to drivers/of/unittest-data/tests-match.dtsi diff --git a/drivers/of/testcase-data/tests-phandle.dtsi b/drivers/of/unittest-data/tests-phandle.dtsi similarity index 100% rename from drivers/of/testcase-data/tests-phandle.dtsi rename to drivers/of/unittest-data/tests-phandle.dtsi diff --git a/drivers/of/testcase-data/tests-platform.dtsi b/drivers/of/unittest-data/tests-platform.dtsi similarity index 100% rename from drivers/of/testcase-data/tests-platform.dtsi rename to drivers/of/unittest-data/tests-platform.dtsi diff --git a/drivers/of/selftest.c b/drivers/of/unittest.c similarity index 100% rename from drivers/of/selftest.c rename to drivers/of/unittest.c -- 2.30.2