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

Simon Glass
2020-12-28T16:26:23Z

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