]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: core: Allow parents to pass data to children during probe
authorSimon Glass <sjg@chromium.org>
Tue, 14 Oct 2014 05:41:50 +0000 (23:41 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 16:36:46 +0000 (10:36 -0600)
commitaccd4b19b39bde7398aa8d1a8eeb66f3a14dde5b
tree09bcc8e1c9ebd5b6213bdb198b35691f8902e57a
parenta8981d4f80b010666ad754d20a4f389f94d6726d
dm: core: Allow parents to pass data to children during probe

Buses sometimes want to pass data to their children when they are probed.
For example, a SPI bus may want to tell the slave device about the chip
select it is connected to.

Add a new function to permit the parent data to be supplied to the child.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/core/device.c
include/dm/device-internal.h
include/dm/device.h