[U-Boot] [PATCH v3 12/26] dm: core: Allow uclasses to specify private data for a device's children

Simon Glass sjg at chromium.org
Mon Jan 26 21:11:37 CET 2015


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

Applied to -u-boot-dm


More information about the U-Boot mailing list