All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH 30/49] dtoc: Rename sandbox_i2c_test and sandbox_pmic_test
Date: Mon, 28 Dec 2020 20:35:16 -0700	[thread overview]
Message-ID: <20201229033535.99990-31-sjg@chromium.org> (raw)
In-Reply-To: <20201229033535.99990-1-sjg@chromium.org>

These have '_test' suffixes which are not present on the drivers in the
source code. Drop the suffixes to avoid a mismatch when scanning.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/dtoc/test/dtoc_test_simple.dts |  4 ++--
 tools/dtoc/test_dtoc.py              | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tools/dtoc/test/dtoc_test_simple.dts b/tools/dtoc/test/dtoc_test_simple.dts
index 1c87b891929..d8ab8613ee3 100644
--- a/tools/dtoc/test/dtoc_test_simple.dts
+++ b/tools/dtoc/test/dtoc_test_simple.dts
@@ -45,12 +45,12 @@
 	};
 
 	i2c at 0 {
-		compatible = "sandbox,i2c-test";
+		compatible = "sandbox,i2c";
 		u-boot,dm-pre-reloc;
 		#address-cells = <1>;
 		#size-cells = <0>;
 		pmic at 9 {
-			compatible = "sandbox,pmic-test";
+			compatible = "sandbox,pmic";
 			u-boot,dm-pre-reloc;
 			reg = <9>;
 			low-power;
diff --git a/tools/dtoc/test_dtoc.py b/tools/dtoc/test_dtoc.py
index 523f0a923eb..9049c2895f1 100755
--- a/tools/dtoc/test_dtoc.py
+++ b/tools/dtoc/test_dtoc.py
@@ -207,9 +207,9 @@ class TestDtoc(unittest.TestCase):
         self.assertEqual(C_HEADER.splitlines() + [''], lines)
 
     struct_text = HEADER + '''
-struct dtd_sandbox_i2c_test {
+struct dtd_sandbox_i2c {
 };
-struct dtd_sandbox_pmic_test {
+struct dtd_sandbox_pmic {
 \tbool\t\tlow_power;
 \tfdt64_t\t\treg[2];
 };
@@ -229,22 +229,22 @@ struct dtd_sandbox_spl_test {
 
     platdata_text = C_HEADER + '''
 /* Node /i2c at 0 index 0 */
-static struct dtd_sandbox_i2c_test dtv_i2c_at_0 = {
+static struct dtd_sandbox_i2c dtv_i2c_at_0 = {
 };
 U_BOOT_DRVINFO(i2c_at_0) = {
-\t.name\t\t= "sandbox_i2c_test",
+\t.name\t\t= "sandbox_i2c",
 \t.plat\t= &dtv_i2c_at_0,
 \t.plat_size\t= sizeof(dtv_i2c_at_0),
 \t.parent_idx\t= -1,
 };
 
 /* Node /i2c at 0/pmic at 9 index 1 */
-static struct dtd_sandbox_pmic_test dtv_pmic_at_9 = {
+static struct dtd_sandbox_pmic dtv_pmic_at_9 = {
 \t.low_power\t\t= true,
 \t.reg\t\t\t= {0x9, 0x0},
 };
 U_BOOT_DRVINFO(pmic_at_9) = {
-\t.name\t\t= "sandbox_pmic_test",
+\t.name\t\t= "sandbox_pmic",
 \t.plat\t= &dtv_pmic_at_9,
 \t.plat_size\t= sizeof(dtv_pmic_at_9),
 \t.parent_idx\t= 0,
-- 
2.29.2.729.g45daf8777d-goog

  parent reply	other threads:[~2020-12-29  3:35 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-29  3:34 [PATCH 00/49] dm: Add dtoc implementation of device instantiation (part D) Simon Glass
2020-12-29  3:34 ` [PATCH 01/49] dtoc: Tidy up pylint warnings in test Simon Glass
2020-12-29  3:34 ` [PATCH 02/49] dtoc: Use None to mean stdout Simon Glass
2020-12-29  3:34 ` [PATCH 03/49] dtoc: Test the stdout output Simon Glass
2020-12-29  3:34 ` [PATCH 04/49] dtoc: Allow providing a directory to write files to Simon Glass
2020-12-29  3:34 ` [PATCH 05/49] dtoc: Allow outputing to multiple files Simon Glass
2020-12-29  3:34 ` [PATCH 06/49] dtoc: Add an 'all' command Simon Glass
2020-12-29  3:34 ` [PATCH 07/49] Makefile: Invoke dtoc only once Simon Glass
2020-12-29  3:34 ` [PATCH 08/49] dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO() Simon Glass
2021-01-06  3:40   ` Walter Lozano
2021-01-06 15:13   ` Simon Glass
2020-12-29  3:34 ` [PATCH 09/49] dm: Rename DM_GET_DEVICE() to DM_DRVINFO_GET() Simon Glass
2021-01-06  3:40   ` Walter Lozano
2021-01-06 15:13   ` Simon Glass
2020-12-29  3:34 ` [PATCH 10/49] dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() Simon Glass
2020-12-29  3:34 ` [PATCH 11/49] dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS Simon Glass
2020-12-29  3:34 ` [PATCH 12/49] concurrencytest: Fix Python3 warning Simon Glass
2020-12-29  3:34 ` [PATCH 13/49] dtoc: Run tests using test_util Simon Glass
2020-12-29  3:35 ` [PATCH 14/49] dtoc: Add a header comment to each generated file Simon Glass
2020-12-29  3:35 ` [PATCH 15/49] dtoc: Rename dt-platdata.c to dt-plat.c Simon Glass
2020-12-29  3:35 ` [PATCH 16/49] dtoc: Add the method for each command to OutputFile Simon Glass
2020-12-29  3:35 ` [PATCH 17/49] dtoc: Allow specifying the base directory for tests Simon Glass
2020-12-29  3:35 ` [PATCH 18/49] dtoc: Output nodes in order Simon Glass
2020-12-29  3:35 ` [PATCH 19/49] dtoc: Drop dm_populate_phandle_data() Simon Glass
2020-12-29  3:35 ` [PATCH 20/49] dtoc: Split source-code scanning to a separate file Simon Glass
2020-12-29  3:35 ` [PATCH 21/49] dtoc: Move src_scan tests " Simon Glass
2020-12-29  3:35 ` [PATCH 22/49] dtoc: Tidy up src_scan tests Simon Glass
2020-12-29  3:35 ` [PATCH 23/49] dtoc: Scan drivers for available information Simon Glass
2020-12-29  3:35 ` [PATCH 24/49] dtoc: Save scan information across test runs Simon Glass
2020-12-29  3:35 ` [PATCH 25/49] dtoc: Ignore unwanted files when scanning for drivers Simon Glass
2020-12-29  3:35 ` [PATCH 26/49] dtoc: Collect priv/plat struct info from drivers Simon Glass
2020-12-29  3:35 ` [PATCH 27/49] dtoc: Support scanning of uclasses Simon Glass
2020-12-29  3:35 ` [PATCH 28/49] dtoc: Support scanning of structs in header files Simon Glass
2020-12-29  3:35 ` [PATCH 29/49] dtoc: Move test files into a test/ directory Simon Glass
2020-12-29  3:35 ` Simon Glass [this message]
2020-12-29  3:35 ` [PATCH 31/49] dtoc: Add some extra properties to nodes Simon Glass
2020-12-29  3:35 ` [PATCH 32/49] dtoc: Make use of node properties Simon Glass
2020-12-29  3:35 ` [PATCH 33/49] dtoc: Process nodes to set up required properties Simon Glass
2020-12-29  3:35 ` [PATCH 34/49] dtoc: Track nodes which are actually used Simon Glass
2020-12-29  3:35 ` [PATCH 35/49] dtoc: Support tracking the phase of U-Boot Simon Glass
2020-12-29  3:35 ` [PATCH 36/49] Makefile: Pass the U-Boot phase to dtoc Simon Glass
2020-12-29  3:35 ` [PATCH 37/49] dtoc: Support headers needed for drivers Simon Glass
2020-12-29  3:35 ` [PATCH 38/49] dtoc: Process driver aliases along with drivers Simon Glass
2020-12-29  3:35 ` [PATCH 39/49] dtoc: Warn of duplicate drivers Simon Glass
2020-12-29  3:35 ` [PATCH 40/49] dtoc: Read aliases for uclasses Simon Glass
2020-12-29  3:35 ` [PATCH 41/49] dtoc: Assign a sequence number to each node Simon Glass
2020-12-29  3:35 ` [PATCH 42/49] dtoc: Set up the uclasses that are used Simon Glass
2020-12-29  3:35 ` [PATCH 43/49] dtoc: Support processing the root node Simon Glass
2020-12-29  3:35 ` [PATCH 44/49] dtoc: Add an option for device instantiation Simon Glass
2020-12-29  3:35 ` [PATCH 45/49] dm: of-platadata: Add " Simon Glass
2021-01-06  3:39   ` Walter Lozano
2021-01-23 15:10     ` Simon Glass
2020-12-29  3:35 ` [PATCH 46/49] dtoc: Add support for decl file Simon Glass
2020-12-29  3:35 ` [PATCH 47/49] dtoc: Don't generate platform data with instantiation Simon Glass
2020-12-29  3:35 ` [PATCH 48/49] dtoc: Generate uclass devices Simon Glass
2020-12-29  3:35 ` [PATCH 49/49] dtoc: Generate device instances Simon Glass
2021-01-06 15:12 ` [PATCH 22/49] dtoc: Tidy up src_scan tests Simon Glass
2021-01-06 15:12 ` [PATCH 21/49] dtoc: Move src_scan tests to a separate file Simon Glass
2021-01-06 15:12 ` [PATCH 20/49] dtoc: Split source-code scanning " Simon Glass
2021-01-06 15:12 ` [PATCH 19/49] dtoc: Drop dm_populate_phandle_data() Simon Glass
2021-01-06 15:12 ` [PATCH 18/49] dtoc: Output nodes in order Simon Glass
2021-01-06 15:12 ` [PATCH 17/49] dtoc: Allow specifying the base directory for tests Simon Glass
2021-01-06 15:12 ` [PATCH 16/49] dtoc: Add the method for each command to OutputFile Simon Glass
2021-01-06 15:12 ` [PATCH 15/49] dtoc: Rename dt-platdata.c to dt-plat.c Simon Glass
2021-01-06 15:12 ` [PATCH 14/49] dtoc: Add a header comment to each generated file Simon Glass
2021-01-06 15:12 ` [PATCH 13/49] dtoc: Run tests using test_util Simon Glass
2021-01-06 15:12 ` [PATCH 12/49] concurrencytest: Fix Python3 warning Simon Glass
2021-01-06 15:13 ` [PATCH 11/49] dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS Simon Glass
2021-01-06 15:13 ` [PATCH 10/49] dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() Simon Glass
2021-01-06 15:13 ` [PATCH 07/49] Makefile: Invoke dtoc only once Simon Glass
2021-01-06 15:13 ` [PATCH 06/49] dtoc: Add an 'all' command Simon Glass
2021-01-06 15:13 ` [PATCH 05/49] dtoc: Allow outputing to multiple files Simon Glass
2021-01-06 15:13 ` [PATCH 04/49] dtoc: Allow providing a directory to write files to Simon Glass
2021-01-06 15:13 ` [PATCH 03/49] dtoc: Test the stdout output Simon Glass
2021-01-06 15:13 ` [PATCH 02/49] dtoc: Use None to mean stdout Simon Glass
2021-01-06 15:13 ` [PATCH 01/49] dtoc: Tidy up pylint warnings in test Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201229033535.99990-31-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.