[PATCH v2 17/18] dm: core: Use access methods for dev/uclass private data

Simon Glass sjg at chromium.org
Mon Dec 28 17:25:52 CET 2020


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 at 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!


More information about the U-Boot mailing list