[PATCH 18/26] dm: core: Access device flags through functions

Simon Glass sjg at chromium.org
Mon Dec 28 17:26:23 CET 2020


At present flags are stored as part of the device. In preparation for
storing them separately, change the access to go through inline functions.

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

 cmd/remoteproc.c                     |  2 +-
 drivers/clk/clk.c                    |  2 +-
 drivers/core/device-remove.c         | 18 ++++++++--------
 drivers/core/device.c                | 32 ++++++++++++++--------------
 drivers/core/devres.c                |  4 ++--
 drivers/core/dump.c                  |  4 ++--
 drivers/mtd/nand/raw/octeontx_nand.c |  2 +-
 drivers/remoteproc/rproc-uclass.c    |  2 +-
 drivers/serial/serial-uclass.c       |  2 +-
 include/dm/device.h                  | 15 +++++++++++++
 include/virtio.h                     |  2 +-
 test/dm/bus.c                        | 10 ++++-----
 test/dm/core.c                       | 14 ++++++------
 test/dm/cpu.c                        |  2 +-
 test/dm/test-fdt.c                   | 20 ++++++++---------
 test/dm/virtio.c                     |  2 +-
 16 files changed, 74 insertions(+), 59 deletions(-)

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


More information about the U-Boot mailing list