u-boot-2016/drivers/core
Simon Glass dac8db2ce6 dm: core: Allow uclasses to specify private data for a device's children
In many cases the per-child private data for a device's children is defined
by the uclass rather than the individual driver. For example, a SPI bus
needs to store information about each of its children, but all SPI drivers
store the same information. It makes sense to allow the uclass to define
this data.

If the driver provides a size value for its per-child private data, then use
it. Failng that, fall back to that provided by the uclass.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
2015-01-29 17:09:55 -07:00
..
device-remove.c dm: core: Allow uclasses to specify private data for a device's children 2015-01-29 17:09:55 -07:00
device.c dm: core: Allow uclasses to specify private data for a device's children 2015-01-29 17:09:55 -07:00
Kconfig dm: add entries to Kconfig 2014-10-23 21:43:09 -06:00
lists.c dm: core: remove unnecessary return condition in uclass lookup 2014-11-22 10:16:49 +01:00
Makefile dm: Allow device removal features to be dropped 2014-11-21 08:13:02 +01:00
root.c dm: core: Set device tree node for root device 2015-01-29 17:09:54 -07:00
simple-bus.c dm: core: Add support for simple-bus 2014-10-22 10:36:56 -06:00
uclass.c dm: do not check the existence of uclass operation 2014-10-22 10:32:16 -06:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00