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 17/18] dm: core: Use access methods for dev/uclass private data
Date: Mon, 28 Dec 2020 08:25:52 -0800	[thread overview]
Message-ID: <CAPnjgZ3HGTg0zO8fxnW8fjnv8OSOS0ZZWkT4MBbZujd66ToQCw@mail.gmail.com> (raw)
In-Reply-To: <20201223023030.2023937-12-sjg@chromium.org>

Use these functions in the core code as much as possible. With this, there
are only two places where each priv/plat pointer is accessed, one for read
and one for write.

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

Changes in v2:
- Add a warning for clk_reqister()

 drivers/core/device-remove.c |  8 ++---
 drivers/core/device.c        | 61 +++++++++++++++++++-----------------
 drivers/core/uclass.c        | 13 +++++---
 3 files changed, 45 insertions(+), 37 deletions(-)

Applied to u-boot-dm/next, thanks!

  parent reply	other threads:[~2020-12-28 16:25 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 ` [PATCH v2 11/18] dm: core: Use 'uclass_driver' for the uclass linker_list Simon Glass
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 ` Simon Glass [this message]
2020-12-28 16:25 ` [PATCH v2 16/18] dm: Use access methods for dev/uclass private data 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=CAPnjgZ3HGTg0zO8fxnW8fjnv8OSOS0ZZWkT4MBbZujd66ToQCw@mail.gmail.com \
    --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.