All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH v2 11/18] dm: core: Use 'uclass_driver' for the uclass linker_list
Date: Tue, 22 Dec 2020 19:30:23 -0700	[thread overview]
Message-ID: <20201223023030.2023937-7-sjg@chromium.org> (raw)
In-Reply-To: <20201223023030.2023937-1-sjg@chromium.org>

At present the name 'uclass_driver' is used for the uclass linker list.
This does not follow the convention of using the struct name. Fix it.

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

(no changes since v1)

 drivers/core/lists.c | 4 ++--
 drivers/core/root.c  | 4 ++--
 include/dm/uclass.h  | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index b23ee3030e5..426444db3a9 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -39,8 +39,8 @@ struct driver *lists_driver_lookup_name(const char *name)
 struct uclass_driver *lists_uclass_lookup(enum uclass_id id)
 {
 	struct uclass_driver *uclass =
-		ll_entry_start(struct uclass_driver, uclass);
-	const int n_ents = ll_entry_count(struct uclass_driver, uclass);
+		ll_entry_start(struct uclass_driver, uclass_driver);
+	const int n_ents = ll_entry_count(struct uclass_driver, uclass_driver);
 	struct uclass_driver *entry;
 
 	for (entry = uclass; entry != uclass + n_ents; entry++) {
diff --git a/drivers/core/root.c b/drivers/core/root.c
index f2fba5883aa..9ef242979ba 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -86,8 +86,8 @@ void fix_drivers(void)
 void fix_uclass(void)
 {
 	struct uclass_driver *uclass =
-		ll_entry_start(struct uclass_driver, uclass);
-	const int n_ents = ll_entry_count(struct uclass_driver, uclass);
+		ll_entry_start(struct uclass_driver, uclass_driver);
+	const int n_ents = ll_entry_count(struct uclass_driver, uclass_driver);
 	struct uclass_driver *entry;
 
 	for (entry = uclass; entry != uclass + n_ents; entry++) {
diff --git a/include/dm/uclass.h b/include/dm/uclass.h
index 91edbfb47d4..fde08fe157a 100644
--- a/include/dm/uclass.h
+++ b/include/dm/uclass.h
@@ -112,7 +112,7 @@ struct uclass_driver {
 
 /* Declare a new uclass_driver */
 #define UCLASS_DRIVER(__name)						\
-	ll_entry_declare(struct uclass_driver, __name, uclass)
+	ll_entry_declare(struct uclass_driver, __name, uclass_driver)
 
 /**
  * uclass_get() - Get a uclass based on an ID, creating it if needed
-- 
2.29.2.729.g45daf8777d-goog

  parent reply	other threads:[~2020-12-23  2:30 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-23  2:30 [PATCH v2 00/18] dm: Preparation for enhanced of-platdata Simon Glass
2020-12-23  2:30 ` [PATCH v2 01/18] Makefile: Build a separate .dtb for TPL Simon Glass
2020-12-23  2:30 ` [PATCH v2 02/18] Makefile: Build SPL dtbs in the spl/ directory Simon Glass
2020-12-23  2:30 ` [PATCH v2 03/18] Makefile: Tidy up SPL dtb production Simon Glass
2020-12-23  2:30 ` [PATCH v2 04/18] Makefile: Use common args for dtoc Simon Glass
2020-12-23  2:30 ` [PATCH v2 05/18] buildman: Report sizes for TPL also Simon Glass
2020-12-23  2:30 ` [PATCH v2 06/18] serial: Update NS16550_t and struct NS16550 Simon Glass
2020-12-23  2:30 ` [PATCH v2 07/18] serial: Rename ns16550 functions to lower case Simon Glass
2020-12-23  2:30 ` [PATCH v2 08/18] sandbox: Drop unnecessary test node Simon Glass
2020-12-23  2:30 ` [PATCH v2 09/18] spl: Drop bd_info in the data section Simon Glass
2020-12-23  2:30 ` [PATCH v2 10/18] dm: core: Support dm_dump_all() in SPL Simon Glass
2020-12-23  2:30 ` Simon Glass [this message]
2020-12-23  2:30 ` [PATCH v2 12/18] dm: core: Only include simple-bus devicetree id when needed Simon Glass
2020-12-23  2:30 ` [PATCH v2 13/18] x86: apl: Drop support for !OF_PLATDATA_PARENT Simon Glass
2020-12-23  2:30 ` [PATCH v2 14/18] dm: core: Add function to access uclass priv Simon Glass
2020-12-23  2:30 ` [PATCH v2 15/18] dm: core: Add functions to set priv/plat Simon Glass
2020-12-23  2:30 ` [PATCH v2 16/18] dm: Use access methods for dev/uclass private data Simon Glass
2020-12-23  2:30 ` [PATCH v2 17/18] dm: core: " Simon Glass
2020-12-23  2:30 ` [PATCH v2 18/18] dm: core: Rename the priv/plat members Simon Glass
2020-12-28 16:25 ` Simon Glass
2020-12-28 16:25 ` [PATCH v2 17/18] dm: core: Use access methods for dev/uclass private data Simon Glass
2020-12-28 16:25 ` [PATCH v2 16/18] dm: " Simon Glass
2020-12-28 16:25 ` [PATCH v2 15/18] dm: core: Add functions to set priv/plat Simon Glass
2020-12-28 16:25 ` [PATCH v2 14/18] dm: core: Add function to access uclass priv Simon Glass
2020-12-28 16:25 ` [PATCH v2 13/18] x86: apl: Drop support for !OF_PLATDATA_PARENT Simon Glass
2020-12-28 16:25 ` [PATCH v2 12/18] dm: core: Only include simple-bus devicetree id when needed Simon Glass
2020-12-28 16:26 ` [PATCH v2 11/18] dm: core: Use 'uclass_driver' for the uclass linker_list Simon Glass
2020-12-28 16:26 ` [PATCH v2 10/18] dm: core: Support dm_dump_all() in SPL Simon Glass
2020-12-28 16:26 ` [PATCH v2 09/18] spl: Drop bd_info in the data section Simon Glass
2020-12-28 16:26 ` [PATCH v2 08/18] sandbox: Drop unnecessary test node Simon Glass
2020-12-28 16:26 ` [PATCH v2 07/18] serial: Rename ns16550 functions to lower case Simon Glass
2020-12-28 16:26 ` [PATCH v2 06/18] serial: Update NS16550_t and struct NS16550 Simon Glass
2020-12-28 16:26 ` [PATCH v2 05/18] buildman: Report sizes for TPL also Simon Glass
2020-12-28 16:26 ` [PATCH v2 04/18] Makefile: Use common args for dtoc Simon Glass
2020-12-28 16:26 ` [PATCH v2 03/18] Makefile: Tidy up SPL dtb production Simon Glass
2020-12-28 16:26 ` [PATCH v2 02/18] Makefile: Build SPL dtbs in the spl/ directory Simon Glass
2020-12-28 16:26 ` [PATCH v2 01/18] Makefile: Build a separate .dtb for TPL 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=20201223023030.2023937-7-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.