
26 Jan
2015
26 Jan
'15
9:11 p.m.
On 25 January 2015 at 19:00, Masahiro Yamada yamada.m@jp.panasonic.com wrote:
On Sun, 25 Jan 2015 08:27:06 -0700 Simon Glass sjg@chromium.org wrote:
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
Changes in v3:
- Fix typo in commit subject
Changes in v2: None
Reviewed-by: Masahiro Yamada yamada.m@jp.panasonic.com
Applied to -u-boot-dm