dm: Add child_pre_probe() and child_post_remove() methods
Some devices (particularly bus devices) must track their children, knowing
when a new child is added so that it can be set up for communication on the
bus.
Add a child_pre_probe() method to provide this feature, and a corresponding
child_post_remove() method.
Signed-off-by:
Simon Glass <sjg@chromium.org>
Showing
- doc/driver-model/README.txt 67 additions, 1 deletiondoc/driver-model/README.txt
- drivers/core/device.c 15 additions, 1 deletiondrivers/core/device.c
- include/dm/device.h 6 additions, 0 deletionsinclude/dm/device.h
- include/dm/test.h 4 additions, 0 deletionsinclude/dm/test.h
- test/dm/bus.c 68 additions, 0 deletionstest/dm/bus.c
Loading
Please register or sign in to comment